enabled os.time

This commit is contained in:
Anonymissimus 2011-06-17 13:42:31 +00:00
parent 184105148a
commit 0c6285fccb

View file

@ -3479,7 +3479,7 @@ LuaKernel::LuaKernel(const config &cfg)
lua_pop(L, 1);
char const* function = lua_tostring(L, -1);
if(strcmp(function, "clock") == 0 || strcmp(function, "date") == 0
|| strcmp(function, "difftime") == 0) continue;
|| strcmp(function, "time") == 0 || strcmp(function, "difftime") == 0) continue;
lua_pushnil(L);
lua_setfield(L, -3, function);
}