Hey,
in my C file I call luaL_dostring like this:
luaL_dostring(L, "return 'somestring'");
How do I read this return value in C after this line?
Thanks.
Edit: Thanks for the help.
I'd like to add that to remove the element after retrieving it, you use:
lua_pop(L, 1);