Knowing Juan he probably implemented something like that then.
/* * Predefined Macros in PJSR */console.show();console.writeln();console.writeln( "*** Predefined Macros ***" );console.writeln( #__FILE__ ); // Absolute path of the current script fileconsole.writeln( #__LINE__ ); // Current line numberconsole.writeln( #__DATE__ ); // Date of execution startconsole.writeln( #__TIME__ ); // Local time of execution startconsole.writeln( #__JS_VERSION__ ); // 100 * version of the JavaScript engine (185 in PI 1.7; 187 in PI 1.8)console.writeln( #__PI_VERSION__ ); // Full PI Core version. Example: 01.08.00.0853console.writeln( #__PI_MAJOR__ ); // PI Core version: major version numberconsole.writeln( #__PI_MINOR__ ); // PI Core version: minor version numberconsole.writeln( #__PI_RELEASE__ ); // PI Core version: release version numberconsole.writeln( #__PI_BUILD__ ); // PI Core version: build number#ifdef __PI_BETA__console.writeln( "Beta ", #__PI_BETA__ ); // PI Core version: beta version number, or undefined#endif#ifdef __PI_LE__console.writeln( "Limited Edition" ); // Defined if this is a LE version#endifconsole.writeln( #__PI_LANG__ ); // PI Core version: language code, ISO 639.2console.writeln( #__PI_CODENAME__ ); // PI Core version: Codename (1.7: Starbuck, 1.8: Ripley)console.writeln( #__PI_PLATFORM__ ); // One of: LINUX, FREEBSD, MACOSX, MSWINDOWS#ifgteq __PI_MINOR__ 8console.writeln( #__PI_ARCH__ ); // *** New in 1.8: One of: x86, x86_64#endif