Use lua_type before lua_tostring : If lua_type returns LUA_TSTRING , then you can safely call lua_tostring to get the string and no memory ...
確定! 回上一頁