summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat/LuaScriptInterface.h')
-rw-r--r--src/cat/LuaScriptInterface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h
index 6556d35..ad0b70f 100644
--- a/src/cat/LuaScriptInterface.h
+++ b/src/cat/LuaScriptInterface.h
@@ -37,6 +37,11 @@ class Tool;
#define LUACON_EL_MODIFIED_GRAPHICS 0x2
#define LUACON_EL_MODIFIED_MENUS 0x4
+// idea from mniip, makes things much simpler
+#define SETCONST(L, NAME)\
+ lua_pushinteger(L, NAME);\
+ lua_setfield(L, -2, #NAME);
+
class TPTScriptInterface;
class LuaScriptInterface: public CommandInterface
{