lua-users home
lua-l archive

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


>From: Max McGuire <amcguire@andrew.cmu.edu>
>
>I'm looking for a value that I can use in my C code to indicate that an 
>integer is not storing a valid reference, much like the NULL value is used 
>for indicating invaild pointers or LUA_NOOBJECT for lua_Object's.  The 
>requirement on this value is that lua_ref() will never return that value.

Use LUA_NOREF (introduced in 4.0).
--lhf