Modules

Print_Vars

moduleSource

Available on macOS, Linux, Windows, Wasm

#import "Print_Vars";

Prints the source text, value and type of expressions: print_vars(x, y) writes one line per variable, like x = 7 (s32). print_vars_to writes into a String_Builder, log_vars logs.

Example↗
count := 3;
print_vars(count);

Procedures#

(code: Code) -> string

The source text of code, rendered at compile time.

($args: ..Code, loc := #caller_location)

Like print_vars, but sends the lines through log.

Types#