code_is_compiled

Check to see if the code was compiled using the YoYo Compiler.

Syntax:

code_is_compiled();


Returns: Boolean


Description

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


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.


Back: Debugging
Next: fps
© Copyright YoYo Games Ltd. 2018 All Rights Reserved