diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-06-04 18:01:23 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-06-04 18:01:23 +0000 |
commit | 1c96560f8bc136fa2930dd67f538f65c02a1c350 (patch) | |
tree | e0ecd365094b4aff09c6fe8cab228d371ce68d05 /plugins/MirLua/src/mlua_metatable.h | |
parent | 420403dedffee8a10336e450337d30e1f25336b2 (diff) |
MirLua:
- fixed DBEVENTINFO metatable
- BLOB metatable temporary moved to utils
- fixed tonumber function
git-svn-id: http://svn.miranda-ng.org/main/trunk@16913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_metatable.h')
-rw-r--r-- | plugins/MirLua/src/mlua_metatable.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index deb4c66cef..e67f54ee6d 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -60,8 +60,6 @@ private: static void Init(lua_State *L, T **obj)
{
luaL_checktype(L, 1, LUA_TLIGHTUSERDATA);
- //T *udata = (T*)lua_touserdata(L, 1);
- //memcpy(*obj, udata, sizeof(T));
*obj = (T*)lua_touserdata(L, 1);
}
@@ -71,7 +69,7 @@ private: return 1;
}
- static void Free(lua_State * /*L*/, T **obj)
+ static void Free(lua_State* /*L*/, T **obj)
{
*obj = NULL;
}
@@ -79,7 +77,6 @@ private: static int lua_new(lua_State *L)
{
T **udata = (T**)lua_newuserdata(L, sizeof(T*));
- //memset(udata, 0, sizeof(T));
Init(L, udata);
if (*udata == NULL)
{
|