diff options
Diffstat (limited to 'src/FbTk/LuaUtil.cc')
-rw-r--r-- | src/FbTk/LuaUtil.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbTk/LuaUtil.cc b/src/FbTk/LuaUtil.cc index 8f382e8..a5413f2 100644 --- a/src/FbTk/LuaUtil.cc +++ b/src/FbTk/LuaUtil.cc | |||
@@ -132,4 +132,13 @@ void Lua::readOnlySet(int index) { | |||
132 | pop(); | 132 | pop(); |
133 | } | 133 | } |
134 | 134 | ||
135 | void Lua::readOnlySetField(int index, const char *k) { | ||
136 | checkstack(1); | ||
137 | index = absindex(index); | ||
138 | |||
139 | pushstring(k); | ||
140 | insert(-2); | ||
141 | readOnlySet(index); | ||
142 | } | ||
143 | |||
135 | } // namespace FbTk | 144 | } // namespace FbTk |