diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-17 15:38:39 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-17 15:38:39 +0000 |
commit | 962a3d06bbd73aa7bb46eb8ae3e65c31a1902d5d (patch) | |
tree | fdb6bec16074d47e7be2aefea625500e94ff17c6 /plugins/MirLua/src/m_variables.cpp | |
parent | 08d411ef426d5b630f0f4592be904ab9e1bd5e5a (diff) |
MirLua: m_variableas moved to separate lua library
git-svn-id: http://svn.miranda-ng.org/main/trunk@16292 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_variables.cpp')
-rw-r--r-- | plugins/MirLua/src/m_variables.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/plugins/MirLua/src/m_variables.cpp b/plugins/MirLua/src/m_variables.cpp deleted file mode 100644 index cf5b6e9890..0000000000 --- a/plugins/MirLua/src/m_variables.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "stdafx.h"
-
-static int lua_FormatString(lua_State *L)
-{
- if (!ServiceExists(MS_VARS_FORMATSTRING))
- {
- lua_pushvalue(L, 1);
- return 1;
- }
-
- ptrT format(mir_utf8decodeT(luaL_checkstring(L, 1)));
- MCONTACT hContact = lua_tointeger(L, 2);
-
- TCHAR *res = variables_parse(format, NULL, hContact);
- lua_pushstring(L, T2Utf(res));
-
- return 1;
-}
-
-static luaL_Reg variablesApi[] =
-{
- { "FormatString", lua_FormatString },
-
- { NULL, NULL }
-};
-
-LUAMOD_API int luaopen_m_variables(lua_State *L)
-{
- luaL_newlib(L, variablesApi);
-
- return 1;
-}
|