Catspeak Reference


codegen

Responsible for the code generation stage of the Catspeak compiler.

This stage converts Catspeak IR, produced by CatspeakParser or CatspeakIRBuilder, into various lower-level formats. The most interesting of these formats is the conversion of Catspeak programs into native GML functions.

§ CATSPEAK_TIMEOUTtop ^

GameMaker Language (.gml)
Copy#macro CATSPEAK_TIMEOUT 1000

The number of microseconds before a Catspeak program times out. The default is 1 second.

Returns Real

§ is_catspeaktop ^

GameMaker Language (.gml)
Copyfunction is_catspeak( value : Any, ) -> Bool

Checks whether a value is a valid Catspeak function compiled through CatspeakGMLCompiler.

⚠️ Warning

Internally, this actually just checks whether the methods name starts with __catspeak_. Because of this, you should avoid giving your functions that prefix to prevent false positives.

Arguments

  • value

    The value to check is a Catspeak function.

Returns Bool