Page MenuHomeFreeBSD

D4560.1775806475.diff
No OneTemporary

Size
707 B
Referenced Files
None
Subscribers
None

D4560.1775806475.diff

Index: sys/contrib/lua/src/lauxlib.c
===================================================================
--- sys/contrib/lua/src/lauxlib.c
+++ sys/contrib/lua/src/lauxlib.c
@@ -947,7 +947,11 @@
}
+#ifdef BOOT_LUA
+static int lpanic (lua_State *L) {
+#else
static int panic (lua_State *L) {
+#endif
lua_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n",
lua_tostring(L, -1));
return 0; /* return to Lua to abort */
@@ -956,7 +960,11 @@
LUALIB_API lua_State *luaL_newstate (void) {
lua_State *L = lua_newstate(l_alloc, NULL);
+#ifdef BOOT_LUA
+ if (L) lua_atpanic(L, &lpanic);
+#else
if (L) lua_atpanic(L, &panic);
+#endif
return L;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 10, 7:34 AM (16 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28314151
Default Alt Text
D4560.1775806475.diff (707 B)

Event Timeline