lua-users home
lua-l archive

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


Adam,


Thanks but check, http://www.lua.org/source/5.2/llimits.h.html#check_exp


On Tue, Sep 2, 2014 at 11:46 PM, Coda Highland <chighland@gmail.com> wrote:
On Tue, Sep 2, 2014 at 3:38 PM, Emeka <emekamicro@gmail.com> wrote:
> Hello All,
>
>
> #define rawgco2ts(o)    check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts))
>
>
> #define check_exp(c,e)          (e)
>
>
> I can't figure out where/how the conditional is used.
>
>
> Regards, \Emeka
>
> --
> Satajanus  Nig. Ltd
>
>

It's not. Look at the *other* definition of check_exp.

#define check_exp(c,e)          (lua_assert(c), (e))

http://www.lua.org/source/5.1/llimits.h.html

/s/ Adam




--
Satajanus  Nig. Ltd