| 266 | } |
| 267 | |
| 268 | int lua_getglobal(lua_State* L, const char* name) |
| 269 | { |
| 270 | if (luaVersion > LuaVersion::LUA_51) |
| 271 | { |
| 272 | return e_lua_getglobal(L, name); |
| 273 | } |
| 274 | return lua_getfield(L, LUA_GLOBALSINDEX, name); |
| 275 | } |
| 276 | |
| 277 | void lua_setglobal(lua_State* L, const char* name) |
| 278 | { |
no test coverage detected