gml_pragma

Set the project to compile using the given command.

Syntax:

gml_pragma(command, [optional...]);


Argument Description
command A string with one of the commands listed below.
[optional...] Some of the available commands require an optional argument or arguments. These are explained below for each command.


Returns: N/A


Description

The gml_pragma function affects how the YYC target compiles your code and should be called with the different commands to further optimise the final compilation of your project. These commands are effectively pre-processed before the game is compiled and so the function can be placed anywhere in your project and it will still be processed before the game is fully compiled. The available commands are as follows:


Example:

gml_pragma("forceinline");

The above example code will force the script where it is used to be in-lined on compile.


Back: Miscellaneous
Next: parameter_count
© Copyright YoYo Games Ltd. 2018 All Rights Reserved