Command line arguments - YAL-GameMaker-Tools/GmlCppExtFuncs GitHub Wiki

The following can be passed to the tool to adjust behaviour or output

<path>

Relative or absolute paths to files to be processed. Multiple can be specified.
A path may contain * in a file name for simple wildcard matches (e.g. interop_test/lib_*.cpp).

--gml <path>

Path to the auto-generated GML file to be repopulated.

--cpp <path>

Path to the auto-generated C++ file to be repopulated.

--index <path>

Processes a file, but does not copy structs from it.

--function-tag <tag>

Changes the C++ function tag (from the default dllg).
Make sure to define your own macro tag if you do!

--prepend <line>

Adds a line of code at the beginning of the auto-generated C++ file.

--append <line>

Adds a line of code at the end of the auto-generated C++ file.

--include <path>

Adds an #include path to the auto-generated C++ file.

--struct <value>

Changes how C++ structs are converted to/from GML:

  • 1: always uses GML structs for C++ structs
  • 0: always uses arrays for C++ structs
  • auto: generates GmxGen-specific wrapper, like:
// GMS >= 2.3
struct-based code
/*/
array-based code
//*/
  • Other values: uses the value as a condition, like:
// GMS >= 2.3
if (value) {
	struct-based code
} else //*/
{
	array-based code
}

--prefix <prefix>

Changes the prefix for GML functions - good to avoid name collisions between different extensions!

⚠️ **GitHub.com Fallback** ⚠️