gh-959: strict.lua
Implement 'strict' module, which prohibits use of undeclared global variables. require('strict').on() turns strict mode on require('strict').off turns strict mode off Turn strict on by default in debug build, off in release builds.
Showing
- src/CMakeLists.txt 1 addition, 0 deletionssrc/CMakeLists.txt
- src/lua/console.lua 1 addition, 1 deletionsrc/lua/console.lua
- src/lua/init.cc 9 additions, 1 deletionsrc/lua/init.cc
- src/lua/strict.lua 69 additions, 0 deletionssrc/lua/strict.lua
- third_party/luafun 1 addition, 1 deletionthird_party/luafun
Loading
Please register or sign in to comment