Automatically deduce the type in luax_checktype, luax_getmodule, luax_optmodule and luax_totype

--HG--
branch : dynamiccore2
This commit is contained in:
Bart van Strien
2016-11-13 17:13:40 +01:00
parent 4a0a90e511
commit 7dd960619d
61 changed files with 120 additions and 98 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ int w_getPosition(lua_State *L)
int w_setIcon(lua_State *L)
{
image::ImageData *i = luax_checktype<image::ImageData>(L, 1, image::ImageData::type);
image::ImageData *i = luax_checktype<image::ImageData>(L, 1);
luax_pushboolean(L, instance()->setIcon(i));
return 1;
}