Comment on page
sys
Basic helper functions
Asserts that a given value is true. If it's not, abort evaluation and print the given message to the console
conditoon
: The condition that is required to be truemessage
: The message to print in case the assertion doesn't hold
fn assert(bool condition, str message);
Asserts that a given value is true. If it's not, print the given message to the console as a warning
conditoon
: The condition that is required to be truemessage
: The message to print in case the assertion doesn't hold
fn assert_warn(bool condition, str message);
Queries the value of a set environment variable given it's name
name
: The name of the env variablereturn
: The value of that variable
fn env(str name);
Returns the number of parameters in a parameter pack.
pack
: The pack to checkreturn
: Number of parameters inpack
fn sizeof_pack(auto ... pack, );
Last modified 8mo ago