code_is_compiled


Description

This function will return true if the platform compiles outside of the virtual machine, such as for the YYC and JS platforms.


Syntax:

code_is_compiled();


Returns:

Boolean


Example:

if code_is_compiled()
   {
   show_debug_message("Compiler okay!");
   }

The above code checks to see if the game was compiled using the YoYo Compiler and shows a debug message if it was.