Mantis DEFINE Command
The DEFINE command creates compile-time constants for strings (STR) and integers (INT).
Constants are resolved entirely by Karvi Studio at build time, replacing identifier tokens before bytecode generation without incurring runtime memory overhead on the microcontroller.
Syntax & Examples
hello.mantis
1DEFINE #TARGET_HOST STR karvilabs.in2DEFINE #INIT_PAUSE INT 150034DELAY #INIT_PAUSE5GUI r6DELAY 5007STRINGLN ping #TARGET_HOSTRelated Commands
Last updated on