lua-users home
lua-l archive

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


Have you considered SWIG instead of tolua? SWIG supports nil return. 
Oliver

----- Original Message ----- 
From: "Markus Fritsche" <Fritsche.Markus@gmx.net>
To: <lua@bazar2.conectiva.com.br>
Sent: Saturday, November 05, 2005 2:57 PM
Subject: Re: toLua & arrays


> Markus Fritsche wrote:
> 
> Additionally: it's not uncommon for the functions of my wrapped library
> to return NULL in case of a failure - is there something in toLua to
> support tests for being NULL?
> Something like "handle = WrappedConnectServer(server)" will always
> return userdata with toLua.
> 
> Do I have to to the check with own, non-generated code?
> 
> Regards, Markus
> 
> -- 
> http://reauktion.de/flugphase/
> 
>