[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem w/lua_pushuserdata
- From: "Matthias Gall" <matthias@...>
- Date: Sat, 7 Apr 2001 11:07:40 +0200
> It's simply a bug ;-) But if you expect a nil you have to change your
> code too.
I guess I know what you mean, because I don't find a way to check for a NULL in my LUA script now.
if function_result == nil then ...
if function_result == 0 then ...
works. But, function_result is userdata, and it has the value "0", as my debug output says ...
Could you help me again please?
> PS: Be careful when using userdata objects with the default tag...
Thanks in advance,
Matthias Gall, lead programmer at sechsta sinn