Currently, there are no upper bounds in place, for example regarding the macro call stack:
macro function
begin
function
endmacro
function
This segfaults because the stack grows out of bounds. Adding hardcoded upperbounds, like a depth of 2048 or whatever should suffice.
I'm aware that this is yet another piece of information that needs to be carried around all the time. Maybe putting the variables, macros, hex flag, and stack depth all in a single "context" struct would clean up the function signatures?
Currently, there are no upper bounds in place, for example regarding the macro call stack:
This segfaults because the stack grows out of bounds. Adding hardcoded upperbounds, like a depth of 2048 or whatever should suffice.
I'm aware that this is yet another piece of information that needs to be carried around all the time. Maybe putting the variables, macros, hex flag, and stack depth all in a single "context" struct would clean up the function signatures?