summaryrefslogtreecommitdiff
path: root/indra/llaudio/llstreamingaudio_fmodstudio.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-08-15 09:49:34 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-08-15 09:49:34 -0400
commitb3fb23ee0c6d33f5eba3502328ffb0011b5f25fb (patch)
treee38785e5834e445afa38ccba96955cbf29765b02 /indra/llaudio/llstreamingaudio_fmodstudio.cpp
parent78e987883ac3b82466e603c5535fc0332736a0c2 (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/llaudio/llstreamingaudio_fmodstudio.cpp')
0 files changed, 0 insertions, 0 deletions