Closed wpbirney closed 3 years ago
when sqstd_dofile fails due to a compile issue i get invalid error info printed
AN ERROR HAS OCCURRED [] CALLSTACK *FUNCTION [()] *FUNCTION [%s()] %s line [%d] line [13] LOCALS [] 4739699 [] ARRAY [] TABLE
here is initialization of the VM the print functions are taken directly from etc/minimal.c
sqvm = sq_open(1024); sq_pushroottable(sqvm); sqstd_register_iolib(sqvm); sqstd_seterrorhandlers(sqvm); sq_setprintfunc(sqvm, printfunc, errorfunc);
then later when i run
sqstd_dofile(sqvm, "init.nut", false, true);
calling a function that does not exist on purpose for testing yields the above error messages with printf symbols not replaced
whoops sorry. found an issue in my print funcs. everything is working as expected!
when sqstd_dofile fails due to a compile issue i get invalid error info printed
here is initialization of the VM the print functions are taken directly from etc/minimal.c
then later when i run
calling a function that does not exist on purpose for testing yields the above error messages with printf symbols not replaced