diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-13 21:55:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-13 21:55:05 +0000 |
commit | 06639e0d8ec7a181417fbc645e353acdcac8f271 (patch) | |
tree | 1c58800da7c860e35e36fe43f6278eb96744faf3 /plugins/MirLua/src/mlua_metatable.h | |
parent | 174c71beee3a68982cea9244423f117e0af375a5 (diff) |
MirLua: more standart in work with metatables
git-svn-id: http://svn.miranda-ng.org/main/trunk@15720 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_metatable.h')
-rw-r--r-- | plugins/MirLua/src/mlua_metatable.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index 108cf50f1a..0d60cb278e 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -92,6 +92,9 @@ private: case LUA_TSTRINGW:
lua_pushstring(L, ptrA(mir_utf8encodeW(GetValue<wchar_t*>(obj, offset, size))));
break;
+ case LUA_TLIGHTUSERDATA:
+ lua_pushlightuserdata(L, GetValue<void*>(obj, offset, size));
+ break;
default:
lua_pushnil(L);
}
|