From c2a75cb1799a31aa5687e576d1c0bdd50825fded Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 6 Nov 2016 10:05:36 +0100 Subject: Updated sol2, made lua console not crash for nil data (nw) --- 3rdparty/sol2/docs/source/api/protected_function.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to '3rdparty/sol2/docs/source/api/protected_function.rst') diff --git a/3rdparty/sol2/docs/source/api/protected_function.rst b/3rdparty/sol2/docs/source/api/protected_function.rst index 97d4e09f14f..c9fb9b4f425 100644 --- a/3rdparty/sol2/docs/source/api/protected_function.rst +++ b/3rdparty/sol2/docs/source/api/protected_function.rst @@ -183,3 +183,5 @@ The error-handler that is called should a runtime error that Lua can detect occu .. note:: ``protected_function_result`` safely pops its values off the stack when its destructor is called, keeping track of the index and number of arguments that were supposed to be returned. If you remove items below it using ``lua_remove``, for example, it will not behave as expected. Please do not perform fundamentally stack-rearranging operations until the destructor is called (pushing/popping above it is just fine). + +To know more about how function arguments are handled, see :ref:`this note`. -- cgit v1.2.3-70-g09d2