how to push/pop cdata values out of the Lua C stack?

  • From: Cosmin Apreutesei <cosmin.apreutesei@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 3 Mar 2014 03:45:43 +0200

Hi,

I see that lua_type() returns LUA_TCDATA for cdata. Is there any way
to get the cdata value from the stack too? I'd like to be able to
share cdata pointers between Lua states without converting to Lua
numbers and back.

Other related posts:

  • » how to push/pop cdata values out of the Lua C stack? - Cosmin Apreutesei