summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-02-01 14:06:49 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-02-01 14:06:49 +0000
commite41da319418808d832e088c4c0b09ffaf8cc144e (patch)
tree00965849dae062375e4ae2c67e68f8aabc7c5ba3 /plugins/MirLua/src/mlua.cpp
parent014e23323d6dc79605da8ebad1c357176ede9122 (diff)
MirLua: some changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16207 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r--plugins/MirLua/src/mlua.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp
index 1dc4ef440d..8fd617fce7 100644
--- a/plugins/MirLua/src/mlua.cpp
+++ b/plugins/MirLua/src/mlua.cpp
@@ -49,14 +49,10 @@ void CMLua::Load()
SetPaths();
- lua_pushcclosure(L, luaM_print, 0);
- lua_setglobal(L, "print");
- lua_pushcclosure(L, luaM_toansi, 0);
- lua_setglobal(L,"a");
- lua_pushcclosure(L, luaM_toucs2, 0);
- lua_setglobal(L, "u");
- lua_pushcclosure(L, luaM_totable, 0);
- lua_setglobal(L, "totable");
+ lua_register(L, "print", luaM_print);
+ lua_register(L, "a", luaM_toansi);
+ lua_register(L, "u", luaM_toucs2);
+ lua_register(L, "totable", luaM_totable);
lua_atpanic(L, luaM_atpanic);