mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
15 lines
251 B
Plaintext
15 lines
251 B
Plaintext
(defmodule Debug
|
|
|
|
(defdynamic sanitize-addresses []
|
|
(add-cflag "-fsanitize=address"))
|
|
|
|
(register memory-balance (Fn [] Long))
|
|
(register reset-memory-balance! (Fn [] ()))
|
|
|
|
(defn trace [x]
|
|
(do
|
|
(IO.println &(str &x))
|
|
x))
|
|
|
|
)
|