aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_base.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix Lua scripting synchronizationkwolekr2015-11-011-2/+8
| | | | | | | For several years now, the lua script lock has been completely broken. This commit fixes the main issue (creation of a temporary rather than scoped object), and fixes a subsequent deadlock issue caused by nested script API calls by adding support for recursive mutexes.
* Fix server crashing on Lua errorsShadowNinja2015-10-311-13/+7
| | | | | | | | Previously, the server called FATAL_ERROR when a Lua error occured. This caused a (mostly useless) core dump. The server now simply throws an exception, which is caught and printed before exiting with a non-zero return value. This also fixes a number of instances where errors were logged multiple times.
* Push error handler afresh each time lua_pcall is usedKahrl2015-08-271-14/+16
| | | | | Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace.
* Use numeric indices and raw table access with LUA_REGISTRYINDEXKahrl2015-08-271-3/+3
|
* SAPI: Track last executed mod and include in error messageskwolekr2015-08-121-3/+57
|
* Improve Script CPP API diagnosticskwolekr2015-08-051-2/+2
|
* Fix code style from recent commits and add misc. optimizationskwolekr2015-07-021-18/+13
|
* Add Lua errors to error dialogrubenwardy2015-06-291-11/+11
|
* Fix uninitialized variable errorest312015-06-021-0/+5
| | | | | If you run minetest with valgrind, you'll quickly notice uninitialized jump depend error messages that point to s_base.cpp:131. This commit fixes those.
* Add mod securityShadowNinja2015-05-161-22/+22
| | | | Due to compatibility concerns, this is temporarily disabled.
* For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins2015-03-071-1/+1
| | | | NDEBUG is defined), replace those usages with persistent alternatives
* Simplify loading of Android version of menuShadowNinja2014-11-201-0/+4
|
* Fix object reference pushing functions when called from coroutinesShadowNinja2014-10-071-7/+4
|
* Use "core" namespace internallyShadowNinja2014-05-081-9/+19
|
* Organize builtin into subdirectoriesShadowNinja2014-05-071-15/+5
|
* Only push the Lua error handler onceShadowNinja2014-04-271-14/+13
|
* Remove lua_State parameter from LuaError::LuaErrorShadowNinja2014-03-151-2/+3
|
* Pass arguments by referenceSelat2014-03-121-1/+1
|
* Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja2013-12-181-0/+11
|
* Cleanup jthread and fix win32 buildsapier2013-12-011-2/+0
|
* Pass a errfunc to lua_pcall to get a tracebackShadowNinja2013-11-151-28/+5
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-141-132/+147
|
* Move scriptapi to separate folder (by sapier)sapier2013-05-251-0/+264
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)