aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/LuaUtil.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-11-01Add readOnlySetField to FbTk::LuaPavel Labath1-0/+9
an equivalent of rawsetfield, but for "read only" tables.
2011-11-01Lua: Make global variables read-onlyPavel Labath1-17/+14
This prevents the user from inadvertently overwriting e.g. the session table and then wondering why it does not work. I'm still not sure about this approach, as it's not 100% secure (the script can still use raw access to mess with it) and it adds some overhead to any operation referencing a global variable.
2011-11-01Small optimization of the newindexDeny{Write,Modify} functionsPavel Labath1-3/+20
2011-11-01FbTk::Lua - a class which augments lua::state with additional featuresPavel Labath1-0/+104