From 3a7b2c4c645ffecd24df0862b649e79ca5edbfbf Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 16 Jun 2015 20:20:18 +0000 Subject: MirLua: added NULL to core module git-svn-id: http://svn.miranda-ng.org/main/trunk@14219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/MirLua/src/mlua.cpp') diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index f7b5208ccb..cf3562bedc 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -13,6 +13,8 @@ CMLua::CMLua() : L(NULL) lua_pop(L, 1); luaL_newlib(L, coreLib); + lua_pushlightuserdata(L, NULL); + lua_setfield(L, -2, "NULL"); lua_setglobal(L, "m"); Preload(MLUA_DATABASE, luaopen_m_database); -- cgit v1.2.3