From e05155494cb3a4b24f9e89252e34953e68eb7107 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Fri, 21 Jun 2024 14:25:05 -0400 Subject: Multiple LL.atexit(function) calls run functions in reverse order. --- indra/newview/scripts/lua/test_atexit.lua | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 indra/newview/scripts/lua/test_atexit.lua (limited to 'indra/newview/scripts/lua/test_atexit.lua') diff --git a/indra/newview/scripts/lua/test_atexit.lua b/indra/newview/scripts/lua/test_atexit.lua new file mode 100644 index 0000000000..6fbc0f3eb1 --- /dev/null +++ b/indra/newview/scripts/lua/test_atexit.lua @@ -0,0 +1,3 @@ +LL.atexit(function() print('Third') end) +LL.atexit(function() print('Second') end) +LL.atexit(function() print('First') end) -- cgit v1.2.3