/lua/addtest.lua:9: attempt to index local 'testobj' (a userdata value)
我的做法:在exe-main()里lua_pushlightuserdata(L,(void*)g_TestObj.get());//g_TestObj是个全局变量lua_setfield(L,LUA_REGISTRYINDEX,"lua_testobj");exe调用lua,lua调用dll,dll的luaopen_xxx函数lua_getfield(L,LUA_REGISTRYINDEX,"l