Debug

assert-balanced

macro

Macro

Raises an error if the memory balance (numberr of alloc:s - number of free:s) isn't 0. Requires compiling with --log-memory.

leak-array

external

(λ [a] ())

Leak some memory. Useful for testing tools that detect leaks.

log-memory-balance!

external

(λ [Bool] ())

memory-balance

external

(λ [] Long)

memory-logged

macro

Macro

Log all calls to memory allocation within te form. Requires compiling with --log-memory.

reset-memory-balance!

external

(λ [] ())

sanitize-addresses

dynamic

Dynamic

Instruct the compiler to sanitize addresses.

trace

defn

(λ [a] a)

Print the value of an expression to stdout, then return its value.