[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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.
Neither
if function_result == nil then ...
nor
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...
Why?
Thanks in advance,
Matt
--
Matthias Gall, lead programmer at sechsta sinn
http://www.sechsta-sinn.de
matthias@sechsta-sinn.de