diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-22 09:01:42 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-22 09:01:42 +0000 |
commit | 8be4814cca3be42be785da6a366f3da978a4ab72 (patch) | |
tree | 2f21fb9ec763c8e7ca6eb16e09aaf7191868a0b1 /plugins/MirLua/src/mlua_module_loader.h | |
parent | 655ac8423ddf001b8d3021e41e7297d7e3e20510 (diff) |
MirLua: refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@14321 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_module_loader.h')
-rw-r--r-- | plugins/MirLua/src/mlua_module_loader.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_module_loader.h b/plugins/MirLua/src/mlua_module_loader.h new file mode 100644 index 0000000000..b90e18c892 --- /dev/null +++ b/plugins/MirLua/src/mlua_module_loader.h @@ -0,0 +1,18 @@ +#ifndef _LUA_MODULE_LOADER_H_
+#define _LUA_MODULE_LOADER_H_
+
+class CLuaModuleLoader
+{
+private:
+ lua_State *L;
+
+ CLuaModuleLoader(lua_State *L);
+
+ void PreloadModule(const char *name, lua_CFunction loader);
+ void LoadModules();
+
+public:
+ static void Load(lua_State *L);
+};
+
+#endif //_LUA_MODULE_LOADER_H_
\ No newline at end of file |