printf(“%s\n”, lua_tostring(L, -1)); meets a segmentation fault

后端 未结 0 1943
渐次进展
渐次进展 2020-12-01 16:17

Why this code snippet encounter a segmentation fault?

luaL_dostring(L, "print(\'this is a test\')"); printf("%s\\n", lua_tostring(L, -1));

相关标签:
回答
  • 消灭零回复
提交回复
热议问题