summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sol2/docs/source/api/protected_function.rst
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-11-06 10:05:36 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-11-06 10:05:36 +0100
commitc2a75cb1799a31aa5687e576d1c0bdd50825fded (patch)
tree59144f444d666ae20ac8fb2bc4e4553d330945ca /3rdparty/sol2/docs/source/api/protected_function.rst
parentfffd464d345a6368cda7d90945d3409151218a06 (diff)
Updated sol2, made lua console not crash for nil data (nw)
Diffstat (limited to '3rdparty/sol2/docs/source/api/protected_function.rst')
-rw-r--r--3rdparty/sol2/docs/source/api/protected_function.rst2
1 files changed, 2 insertions, 0 deletions
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<function-argument-handling>`.