C++调用lua函数 小明 2025-05-06 09:26:49 4 C++ 调用Lua全局变量(普通) lua_getglobal(lua, "width"); int width = lua_tointeger(lua,-1); lua_pop(lua,1); std::cout The End 标签: