Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144617599
D4560.1775806475.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
707 B
Referenced Files
None
Subscribers
None
D4560.1775806475.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);
+#else
if (L) lua_atpanic(L, &panic);
+#endif
return L;
}
File Metadata
Details
Attached
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)
Attached To
Mode
D4560: use lpanic instead of panic to avoid name collsion.
Attached
Detach File
Event Timeline
Log In to Comment