2021-05-01, 07:09 PM
2021-04-26: Special Prints
Besides the 8 levels mentioned above, there are some special levels:
These special prints are ALWAYS compiled because they give the user important information about errors in code, and not just random debug information. However, they can be suppressed by doing:
Besides the 8 levels mentioned above, there are some special levels:
Quote:
P:F("Fatal error message");
// Prints "* YSI Fatal Error: <your message>"
// Beeps 5 times to alert the user.
Quote:
P:E("Error message");
// Prints "* YSI Error: <your message>"
// Beeps 3 times to alert the user.
Quote:
P:W("Warning message");
// Prints "* YSI Warning: <your message>"
// Beeps 1 time to alert the user.
Quote:
P:I("Info message");
// Prints "* YSI Info: <your message>"
// Very similar to doing "P:0" (which is a thing).
These special prints are ALWAYS compiled because they give the user important information about errors in code, and not just random debug information. However, they can be suppressed by doing:
Quote:
state ysi_debug : off;