Hi guys one question here about FunC, I'm trying to write a DEBUG method, to later be used in this way:
DEBUG("BALANCE", balance);
The output would be, the same that I got if I would run,
~strdump("BALANCE");
balance~dump();
I'm trying to write it in this way:
forall X -> () DEBUG(slice text, X value) inline {
~strdump(text);
value~dump();
}
But in this way I'm getting a STACK underflow in the compilation, with npx blueprint build. Obviously I'm doing something wrong. If anyone have any idea, on how to achieve this.
Jan 12, 2024, 10:01 PM