enigma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Enigma-devel] 2 types of world::Object


From: Ronald Lamprecht
Subject: Re: [Enigma-devel] 2 types of world::Object
Date: Wed, 22 Mar 2006 23:21:49 +0100
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]