Type of CDATA as returned by lua_type

  • From: Saptarshi Guha <saptarshi.guha@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 6 Mar 2014 13:49:21 -0800

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

Other related posts: