Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171702522
D4560.id11263.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
708 B
Referenced Files
None
Subscribers
None
D4560.id11263.diff
View Options
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);
+#endif
if (L) lua_atpanic(L, &panic);
+#endif
return L;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 8:39 PM (11 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38871387
Default Alt Text
D4560.id11263.diff (708 B)
Attached To
Mode
D4560: use lpanic instead of panic to avoid name collsion.
Attached
Detach File
Event Timeline
Log In to Comment