[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: upvalue paranoia
- From: Rebel Neurofog <rebelneurofog@...>
- Date: Mon, 4 Jul 2011 17:07:56 +0400
Hi!
I use lua_pushcclosure () to push C function with user data attached to it.
Currently I check it as an ordinary C function argument.
My rational mind told me that I don't have to, but my paranoia have a
different point of view.
So the question is (I feel pretty stupid asking it):
may I always trust in upvalues or there are some states (upvalues
aren't collected, right?)
when I may get NULL from lua_touserdata () instead?