diff options
Diffstat (limited to 'plugins/MirLua/Modules/WinAPI/src/stdafx.h')
-rw-r--r-- | plugins/MirLua/Modules/WinAPI/src/stdafx.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/MirLua/Modules/WinAPI/src/stdafx.h b/plugins/MirLua/Modules/WinAPI/src/stdafx.h index f2207236e2..1e67e7c313 100644 --- a/plugins/MirLua/Modules/WinAPI/src/stdafx.h +++ b/plugins/MirLua/Modules/WinAPI/src/stdafx.h @@ -66,4 +66,13 @@ #include <m_core.h>
#include <m_utils.h>
-#define MYP2HCAST (long)
\ No newline at end of file +struct luaM_consts
+{
+ char *name;
+ intptr_t value;
+};
+
+
+#define luaM_PushNumberIf(L, a, b) if (b) lua_pushnumber(L, (intptr_t)a); else lua_pushnil(L);
+#define luaM_PushStringIf(L, a, b) if (b) lua_pushstring(L, a); else lua_pushnil(L);
+#define luaM_CheckPushNumber(L, a) luaM_PushNumberIf(L, a, a)
\ No newline at end of file |