Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Preprocessor Directives Support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Preprocessor Directives Support

    Hello,

    Could the use of preprocessor directives cause an issue with NT8?
    I saw on an old post that it was not supported, but I see it compiles and runs without problem.

    Regards,

    #2
    Hello Waxavi,

    Thank you for your note.

    I can confirm pre-processor directives are not supported and will cause issues with NinjaScript, specifically with things like autogenerated code. For example, if you were to wrap your properties definitions in an #if / #endif block, and #undef a bool tested in that #if statement, the NinjaScript generated code will not update accordingly, which will trigger a range of compile errors. Depending on your use case, it may work, but it wouldn't be something that we would be able to supply assistance with.

    That being said, I have added a vote for you to feature request SFT-602, 'Allow NS auto-generated code to respond to pre-processor directives in an NS script'.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X