Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
167 views

What is the purpose of the "HORSE_VCL" compilation directive?

I have started using the horse web framework for building an API in Delphi. The VCL sample mentions the following as a comment in the Main.Form.pas file: // Need to set "HORSE_VCL" ...
3 votes
2 answers
198 views

Some breakpoints are disabled (gray-crossed) in Delphi debugger – why? How to enable all of them?

I’m working with Delphi and placing breakpoints (red circles on the left side of the editor near the line numbers). When I start debugging (e.g., using F4 or Run > Run to Cursor), some of the ...
3 votes
1 answer
65 views

Arduino Macros not working as expected with Classes

I want to have a macro defined in a class. I wish to define it first in my main, but use an #ifndef to create it if the user chooses not to. For some reason it would seem like the class is being ...
0 votes
0 answers
48 views

Using ctypes for a computation routine wrapper

For a computation demonstration project in Linux and Python env, I need to call a C multiplication routine "matmult.c" but before I want to perform an important test if I could do another ...
1 vote
0 answers
237 views

How to use SwiftData #Index with < iOS 18 compatibility

I want to use iOS 18's #Index in an app that still supports iOS 17. This doesn't work: @Model final class MyModel { if #available(iOS 18, *) { #Index<MyModel>([\.prop1, \.prop2]) ...
1 vote
1 answer
295 views

Compiler Directive to check if Skia is enabled on my Delphi FIreMonkey App?

Is there a compiler directive or some kind of directive that I can use to check in the code if Skia is enabled or not for the platform that I am compiling to? I have a form that is used in multiple ...
1 vote
0 answers
118 views

GAS (gnu assembler) and conditional execution

Stupid question. I am writing code in pure assembly for STM32 variants. I want to make two different versions from the same source file by assembling twice with a simple change that is selectable ...
2 votes
0 answers
91 views

Delphi 11.3 compiler directives for "Development" and "Application store" modes

Please tell me the Delphi 11.3 compiler directives for development modes and the application store, if they exist. A switch is needed for different logic. Development is carried out in the FireMonkey ...
0 votes
0 answers
84 views

What does the {$IFNDEF LCLTMSWEB} compiler directive mean?

I'm looking through the WEBLib.StdCtrls source code in TMS Web Core and regularly I see a {$IFNDEF LCLTMSWEB} compiler directive such as here with the TWebLabel component: {$IFNDEF LCLTMSWEB} [...
1 vote
1 answer
149 views

How do I add a compiler directive for TMS Web Core websites?

I can use the following compiler directive code to specify Platform specific code: {$IFDEF MSWINDOWS} // This code is for Windows {$ENDIF} {$IFDEF IOS} // This code is for iOS {$ENDIF} {$IFDEF ...
1 vote
2 answers
349 views

Pass by name for macro arguments

For functions, we can use pass by name as below: function void xyz(string x,int y); $display(x,,y); endfunction initial begin xyz(.x("Hi"),.y(2)); end Now, I have a macro ...
0 votes
1 answer
927 views

default value for macro declaration

When a macro is created but no value is assigned, is there a default value? #define MACRO (end of line). Macro definition has the syntax: #define <IDENTIFIER> <value>. Even if we don't ...
1 vote
1 answer
155 views

SwiftUI compiler directives trigger "Cannot infer contextual base" error for following statements

I have a SwiftUI View for a watchOS / iOS app in which I use the #if os(xxxOS) compiler directive to select between a watchOS specific View or an iOS specific View to provide the content for the the ...
0 votes
1 answer
152 views

Visual Studio C# Project Template #if DEBUG #endif disappear in produced projects

I have Visual Studio C# project template with #if DEBUG #endif directives like this: #if DEBUG ... #endif But when I creating project from this template it doesn't contain this part. Can I somehow ...
2 votes
1 answer
594 views

How to assert size of `usize` to drop support for incompatible platforms?

Problem I've just caught my self writing dynamic assertion that depends on a constant usize::MAX. I wrote: u128::try_from(letters.len()) .expect("No support for platform with `max pointer ...

15 30 50 per page
1
2 3 4 5
...
10

AltStyle によって変換されたページ (->オリジナル) /