Skip to content

Command line arguments

Vadim Dyachenko edited this page Apr 20, 2021 · 5 revisions

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

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

--gml

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

--cpp

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

--index

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

--function-tag

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

--prepend

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

--append

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

--include

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

--struct

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

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

Clone this wiki locally