diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-18 09:13:18 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-18 09:13:18 +0000 |
commit | 73a0b84498501c1e2907f1cdc5f222f1f400edfd (patch) | |
tree | 0317999b0f7b131b58eed6a25ffe6d2cb3dbe2e8 /plugins/MirLua/src/m_core.cpp | |
parent | 540ac837514edcd79a64ffaf582ce4d9d5f0e478 (diff) |
MirLua:
- m_msg_buttonsbar moved to separate lua library
- fixed loading of other c modules
git-svn-id: http://svn.miranda-ng.org/main/trunk@16300 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index 042b628f4f..6ec526101e 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -402,6 +402,47 @@ luaL_Reg coreApi[] = { NULL, NULL }
};
+/***********************************************/
+
+#define MT_WPARAM "WPARAM"
+#define MT_LPARAM "LPARAM"
+
+/*static int mp__call(lua_State *L)
+{
+ switch (lua_type(L, idx))
+ {
+ case LUA_TBOOLEAN:
+ return lua_toboolean(L, idx);
+ case LUA_TNUMBER:
+ return lua_tonumber(L, idx);
+ case LUA_TSTRING:
+ return (LPARAM)lua_tostring(L, idx);
+ case LUA_TUSERDATA:
+ case LUA_TLIGHTUSERDATA:
+ return (LPARAM)lua_touserdata(L, idx);
+ default:
+ return NULL;
+ }
+}
+
+static int mp__toboolean(lua_State *L)
+{
+}
+
+static int mp__tonumber(lua_State *L)
+{
+}
+
+static int mp__tostring(lua_State *L)
+{
+}
+
+static int mp__topointer(lua_State *L)
+{
+}*/
+
+/***********************************************/
+
LUAMOD_API int luaopen_m_core(lua_State *L)
{
luaL_newlib(L, coreApi);
|