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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              647 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              368 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              571 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              573 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X