You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: documentation/source/safety.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Safety Config
30
30
* All calls from Lua will have their arguments checked
31
31
* Turned on by default with clang++, g++ and VC++ if a basic check for building in debug mode is detected (lack of ``_NDEBUG`` or similar compiler-specific checks)
32
32
33
-
``SOL_SAFE_FUNCTION`` triggers the following change:
33
+
``SOL_SAFE_FUNCTIONS`` triggers the following change:
34
34
* All uses of ``sol::function`` and ``sol::stack_function`` will default to ``sol::protected_function`` and ``sol::stack_protected_function``, respectively, rather than ``sol::unsafe_function`` and ``sol::stack_unsafe_function``
35
35
- Note this does not apply to ``sol::stack_aligned_function``: this variant must always be unprotected due to stack positioning requirements, especially in use with ``sol::stack_count``
36
36
* Will make any ``sol::state_view::script`` calls default to their safe variants if there is no supplied environment or error handler function
0 commit comments