Open TymekBrunka opened 1 month ago
i think i migh choose diferent language, but good forum for questions and answers whould be good to have
The docs for sqstd_dofile
say the function expects a table on top of the stack that will be used as ‘this’ for the execution of the script.
It then goes on to give an example of meeting this requirement.
If you require support from an active community, then this language is not the greatest choice for you.
So, I'm trying to just embed squirrel language in cpp app to see how easy it is to embed or how great it is for games etc. And to test it I tried to make a script that creates variable a (an integer). And cpp app is suposed to load that ./myscript.nut file and pull value of variable "a" form vm into stack and print it out.
(linking errors have been resolved, now there are logic errors) here is code
and when building and running app (./myscript.nut is in same directory)
and where should I ask about what's wrong? (ik chatbots are a thing but i mean like forum where ppl know what they say)? Whould be cool if it was added to readme