The #eof compiler directive is used to indicate that the compiler should consider that end-of-file has been reached for the current source file.
#eof will end any active #if group that became active during the reading of the current source file. If the #eof was inside of an included file, then any conditions that that were active when the pjs.include() directive line was read will still be active.
Example:
Code Block | ||
---|---|---|
| ||
#if defined (myroutine) #eof #endif #define myroutine // The code that follows will only be included once // If the routine was already included previously, // these code will not be passed to the Node.js compiler |
...