gml_pragma

Set the YYC target to compile using the given command.

Syntax:

GML Code Example

gml_pragma(command);


Argument Description
command A string with one of the commands listed below.


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. The available commands are as follows:

  • "forceinline" - When the function is called in a script resource using this command, the YYC will compile the project with the script inline, rather than referenced. This will give a further processing boost, but care must be taken when using it as it will also inflate the final executable file size, especially if the inlined code is large and/or used in multiple different places.


Example:

GML Code Example

gml_pragma("forceinline");
 

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here