Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MAgic Code issue

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

    MAgic Code issue

    Magic Code generation must not understand the preprocessor. I surrounded a couple of properties with "#if NEVER ... #endif" and the Magic Code that is generated continues to include them in the argument lists for the functions it creates. Which of course fails to compile, because they are now undefined.

    I tried removing the Magic Code, exiting, restarting and recompiling just to force generation of new Magic Code. New Magic Code was generated, but it still has the same problem.

    I know I can work around this -- I can comment them out instead of using #if. I should not have to do that, though. Magic Code generation MUST get fixed to understand the preprocessor.

    --EV
    Last edited by ETFVoyageur; 08-09-2015, 05:29 PM.

    #2
    I discovered this issue two years ago in NT7.

    Comment


      #3
      Originally posted by strategesis View Post
      I discovered this issue two years ago in NT7.
      So did I. I resorted to using conditions or just commenting lines out.

      Comment


        #4
        I do not think NT8needs to be quite that bug-for-bug compatible!

        --EV

        Comment


          #5
          Originally posted by ETFVoyageur View Post
          I do not think NT8needs to be quite that bug-for-bug compatible!

          --EV
          LOL. I would rather it be completely bug free! Heck, we can dream, can we not?

          Comment


            #6
            Hello,

            Thank you all for your comments.

            I have forwarded this suggestion to allow the NinjaScript generated code to respond to the C# Preprocessor Directives to our development team.

            Comment


              #7
              Thank you all for your suggestion on how we can improve our product. It has been inserted into our tracking system with the unique ID # SFT-602

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by CortexZenUSA, Today, 12:53 AM
              0 responses
              1 view
              0 likes
              Last Post CortexZenUSA  
              Started by CortexZenUSA, Today, 12:46 AM
              0 responses
              1 view
              0 likes
              Last Post CortexZenUSA  
              Started by usazencortex, Today, 12:43 AM
              0 responses
              5 views
              0 likes
              Last Post usazencortex  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              168 responses
              2,266 views
              0 likes
              Last Post sidlercom80  
              Started by Barry Milan, Yesterday, 10:35 PM
              3 responses
              13 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X