Hi,

I wrote:
I did not find any function in the tolua part that has an argument of object type that would have to be checked. I guess tolua would check the tag if necessary.

There are examples in lua-display.cc: l.51
/* function: CropSurface */
static int toluaI_display_CropSurface00(lua_State* tolua_S)
{
 if (
 !tolua_istype(tolua_S,1,tolua_tag(tolua_S,"const Surface"),0) ||
 !tolua_istype(tolua_S,2,tolua_tag(tolua_S,"Rect"),0) ||
 !tolua_isnoobj(tolua_S,3)
 )
 goto tolua_lerror;

Ronald


_______________________________________________
Enigma-devel mailing list
Enigma-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/enigma-devel

Reply via email to