summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-06-13 18:22:20 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-06-13 18:22:20 +0000
commit1c6b8b1f06d26f3ac4db17d6eb203538ba358057 (patch)
tree28847ce93f6162b33245d0d714a75cdb4303ff7c /plugins/MirLua/src/m_core.cpp
parentbfef141fa44aace5d845bfa0d06e4435c97984ba (diff)
MirLua: break backward compatibility
- removed BLOB metatable - m_database's blob now used simple lua table - removed deprecated functions from m_core - added PROTORECVEVENT metatable - added GCDEST metatable - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16968 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r--plugins/MirLua/src/m_core.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index 286365d9b0..3e62d2f032 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -304,6 +304,8 @@ static int core_GetFullPath(lua_State *L)
return 1;
}
+/***********************************************/
+
struct core_ForkThreadParam
{
lua_State *L;
@@ -364,18 +366,12 @@ static int core_TerminateThread(lua_State *L)
return 1;
}
-int core_ptr2number(lua_State *L)
-{
- ObsoleteMethod(L, "Use tonumber(x) instead");
-
- luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
- lua_pushnumber(L, (intptr_t)lua_touserdata(L, 1));
- return 1;
-}
+/***********************************************/
luaL_Reg coreApi[] =
{
{ "CreateHookableEvent", core_CreateHookableEvent },
+ // potentially unsefe for use in scripts
//{ "DestroyHookableEvent", core_DestroyHookableEvent },
{ "NotifyEventHooks", core_NotifyEventHooks },
@@ -399,15 +395,12 @@ luaL_Reg coreApi[] =
{ "Translate", core_Translate },
{ "Parse", core_Parse },
- { "ReplaceVariables", core_Parse },
+
+ { "GetFullPath", core_GetFullPath },
{ "ForkThread", core_ForkThread },
{ "TerminateThread", core_TerminateThread },
- { "PointerToNumber", core_ptr2number },
-
- { "GetFullPath", core_GetFullPath },
-
{ "Version", NULL },
{ "NULL", NULL },