GNU Info

Info Node: (nasm.info)Section 4.8

(nasm.info)Section 4.8


Next: Section 4.8.1 Prev: Section 4.7.5 Up: Chapter 4
Enter node , (file) or (file)node

4.8. Standard Macros
====================

   NASM defines a set of standard macros, which are already defined
when it starts to process any source file. If you really need a program
to be assembled with no pre-defined macros, you can use the `%clear'
directive to empty the preprocessor of everything.

   Most user-level assembler directives (see Note: Chapter 5) are
implemented as macros which invoke primitive directives; these are
described in Note: Chapter 5. The rest of the standard macro set is
described here.

Section 4.8.1
`__NASM_MAJOR__', `__NASM_MINOR__', `__NASM_SUBMINOR__' and `___NASM_PATCHLEVEL__': NASM Version
Section 4.8.2
`__NASM_VERSION_ID__': NASM Version ID
Section 4.8.3
`__NASM_VER__': NASM Version string
Section 4.8.4
`__FILE__' and `__LINE__': File Name and Line Number
Section 4.8.5
`STRUC' and `ENDSTRUC': Declaring Structure Data Types
Section 4.8.6
`ISTRUC', `AT' and `IEND': Declaring Instances of Structures
Section 4.8.7
`ALIGN' and `ALIGNB': Data Alignment

automatically generated by info2www version 1.2.2.9