diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-08-15 09:49:34 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-08-15 09:49:34 -0400 |
commit | b3fb23ee0c6d33f5eba3502328ffb0011b5f25fb (patch) | |
tree | e38785e5834e445afa38ccba96955cbf29765b02 /indra/newview/llfloatermodeluploadbase.cpp | |
parent | 78e987883ac3b82466e603c5535fc0332736a0c2 (diff) |
Introduce lluau_checkstack(L, n); use instead of luaL_checkstack().
luaL_checkstack() accepts a third parameter which is included in the stack
overflow error message. We've been passing nullptr, leading to messages of the
form "stack overflow ((null))". lluau_checkstack() implicitly passes
__FUNCTION__, so we can distinguish which underlying luaL_checkstack() call
encountered the stack overflow condition.
Also, when calling each atexit() function, pass Luau's debug.traceback()
function as the lua_pcall() error handler. This should help diagnose errors in
atexit() functions.
Diffstat (limited to 'indra/newview/llfloatermodeluploadbase.cpp')
0 files changed, 0 insertions, 0 deletions