Add donotpredict to global(x)
This commit is contained in:
@@ -11,7 +11,7 @@ LuaDefine(global, "globalname", "get a table where global data can be stored") {
|
||||
// Get a pointer to the globaldb.
|
||||
LS.rawget(globaldb, LuaRegistry, "globaldb");
|
||||
if (!LS.istable(globaldb)) {
|
||||
luaL_error(L, "globaldb is not enabled");
|
||||
return lua_yield(L, 0); // donotpredict
|
||||
}
|
||||
|
||||
LS.checkstring(globalname);
|
||||
|
||||
Reference in New Issue
Block a user