19 const char* path = luaL_checkstring(L, 1);
20 int x = luaL_checkinteger(L, 2);
21 int y = luaL_checkinteger(L, 3);
23 Gif** udata = (Gif**)lua_newuserdata(L,
sizeof(Gif*));
24 *udata =
new Gif(path, x, y);
26 luaL_getmetatable(L,
"LuaGif");
27 lua_setmetatable(L, -2);