- v0.9.01
- [NEW] version numbers - debug() is now an alias of printf
This commit is contained in:
16
lua.cpp
16
lua.cpp
@@ -914,15 +914,15 @@ void lua_init(char* filenames) {
|
||||
int size;
|
||||
char* buffer = file_getfilebuffer(file_start, size);
|
||||
if (luaL_loadbuffer(L, buffer, size, file_start)) {
|
||||
debug("LOADING ERROR:");
|
||||
debug(lua_tostring(L, -1));
|
||||
debug("LOADING ERROR: ");
|
||||
debug("%s\n",lua_tostring(L, -1));
|
||||
lua_pop(L,1);
|
||||
return;
|
||||
}
|
||||
free(buffer);
|
||||
if (lua_pcall(L,0, LUA_MULTRET, 0)) {
|
||||
debug("RUNTIME ERROR:");
|
||||
debug(lua_tostring(L, -1));
|
||||
debug("RUNTIME ERROR: ");
|
||||
debug("%s\n",lua_tostring(L, -1));
|
||||
lua_pop(L,1);
|
||||
return;
|
||||
}
|
||||
@@ -945,8 +945,8 @@ void lua_call_init() {
|
||||
if (!init_exists) return;
|
||||
lua_getglobal(L, "_init");
|
||||
if (lua_pcall(L, 0, 0, 0)) {
|
||||
debug("RUNTIME ERROR:");
|
||||
debug(lua_tostring(L, -1));
|
||||
debug("RUNTIME ERROR: ");
|
||||
debug("%s\n",lua_tostring(L, -1));
|
||||
lua_pop(L,1);
|
||||
is_playing = false;
|
||||
}
|
||||
@@ -956,8 +956,8 @@ void lua_call_update() {
|
||||
if (!update_exists) return;
|
||||
lua_getglobal(L, "_update");
|
||||
if (lua_pcall(L, 0, 0, 0)) {
|
||||
debug("RUNTIME ERROR:");
|
||||
debug(lua_tostring(L, -1));
|
||||
debug("RUNTIME ERROR: ");
|
||||
debug("%s\n",lua_tostring(L, -1));
|
||||
lua_pop(L,1);
|
||||
is_playing = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user