Hello, I hope i haven't missed this, but does the C function lua_type return 10 for cdata objects? Is there #define for this (e.g. like LUA_TCDATA) Or is there another better way to check whether a lua object is a CDATA. Currently, int rt = lua_type(L,-1); and it appears rt is 10 Thanks in advance Saptarshi