aboutsummaryrefslogtreecommitdiff
path: root/src/shared/lua_api/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/lua_api/common.hpp')
-rw-r--r--src/shared/lua_api/common.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/lua_api/common.hpp b/src/shared/lua_api/common.hpp
index 0b7abd6..583ab1e 100644
--- a/src/shared/lua_api/common.hpp
+++ b/src/shared/lua_api/common.hpp
@@ -1,6 +1,7 @@
#ifndef __broken_shared_lua_common
#define __broken_shared_lua_common
+#define set_const(l,x) lua_pushstring(l,#x);lua_pushinteger(l,x);lua_settable(l,-3);
extern "C" {
#include <lua.h>
#include <lauxlib.h>