diff options
| author | aunsane <aunsane@gmail.com> | 2018-05-20 21:44:13 +0300 |
|---|---|---|
| committer | aunsane <aunsane@gmail.com> | 2018-05-20 21:44:13 +0300 |
| commit | b9f48f4a1d76c9cec03636363075b3e9e64cfc9f (patch) | |
| tree | 537831af62c72e79dbafa877e3f05216fc1567b1 /plugins/MirLua/src/mplugin.h | |
| parent | 3aaa121979662b5127f54a244a328a161be281ea (diff) | |
fix merge
Diffstat (limited to 'plugins/MirLua/src/mplugin.h')
| -rw-r--r-- | plugins/MirLua/src/mplugin.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mplugin.h b/plugins/MirLua/src/mplugin.h new file mode 100644 index 0000000000..9db92580f8 --- /dev/null +++ b/plugins/MirLua/src/mplugin.h @@ -0,0 +1,27 @@ +#ifndef _LUA_CORE_H_ +#define _LUA_CORE_H_ + +struct CMPlugin : public PLUGIN<CMPlugin> +{ + friend class CMLuaOptions; + +private: + lua_State *L; + + void Unload(); + + INT_PTR __cdecl Eval(WPARAM, LPARAM); + INT_PTR __cdecl Call(WPARAM, LPARAM); + INT_PTR __cdecl Exec(WPARAM, LPARAM); + +public: + OBJLIST<CMLuaScript> Scripts; + + CMPlugin(); + ~CMPlugin(); + + void Load(); + void Reload(); +}; + +#endif //_LUA_CORE_H_ |
