#eof
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 #include line was read will still be active.
Example:
#if defined(myroutine)
#eof
#endif
#define myroutine
Â
// The code that follows will only be included once
// If the routine was already included previously,
// these lines will not be passed to the Node.js compiler
RPG Equivalent
/EOF