Menu

#345 Provide method of dumping script after preprocessing

3.0 Series
closed-fixed
nobody
None
5
2025-11-01
2007-01-05
Anonymous
No

It would be handy to be able to cause the compiler to dump the complete script after preprocessing to file.

This would make it much easier to examine the exact preprocessor behavior, and resolve issues in large projects with many includes.

Request by amayo (at) divxcorp [dotcom]

Discussion

  • Anonymous

    Anonymous - 2007-02-13

    Logged In: YES
    user_id=970495
    Originator: NO

    i support this request :)

    and i think it would be the best way, to refactor makensis, so that it works on the scripts in 2pass mode.
    1. preprocessor runs over the whole thing and resolves any macros, defines, !if blocks, removes (inline)comment blocks/lines and kits splitted lines (splitted by /).
    2. script processor runs over the cleaned up script, checks the syntax and adds the commands to the code block.

     
  • Amir Szekely

    Amir Szekely - 2007-02-13

    Logged In: YES
    user_id=584402
    Originator: NO

    Me too.

     
  • Nobody/Anonymous

    Logged In: NO

    another benefit of multipass:
    compiler can warn if it detects possible stack corruption.

     
  • Anders

    Anders - 2016-12-30
    • labels: MakeNSISw -->
    • Group: --> 2.0 Series
     
  • Anders

    Anders - 2025-11-01

    Compiler switches for this was added in 3.0 Beta 1 (/PPO or /SAFEPPO).

     
  • Anders

    Anders - 2025-11-01
    • status: open --> closed-fixed
    • Group: 2.0 Series --> 3.0 Series
     

Log in to post a comment.