Menu

#96 add support for %+0 and %-0

open
nobody
1
2005-07-19
2005-07-19
No

Currently the preprocessor supports %0, as well
as %+n and %-n. Refer to the manual for details.

Now, since %+0 and %-0 never expand to anything
useful, they can be assigned to another meaning.

For example, they could be used to refer to the
number of completed or remaining iterations of a
preprocessor loop. (Granted, the user can track
this information on his/her own by maintaining a
set of two preprocessor variables for a loop --
but a NASM-provided means seems much nicer. :-)

Attached find the necessary changes (note: these
require SF RFE #872331), as well as testcases.

Discussion

  • nasm64developer

    nasm64developer - 2005-07-19

    changes

     
  • nasm64developer

    nasm64developer - 2005-07-19

    testcases

     
  • nasm64developer

    nasm64developer - 2005-11-23

    Logged In: YES
    user_id=804543

    See SF RFE #1365092 for newer code.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.