Passing lua object between lua and c++

I’m looking for a way to be able to pass a Lua defined object to c*+ and then pass that back into Lua.
What I’m trying to do is pass a self pointer into c*+ then use that same self pointer for a Lua callback. That self pointer type is not defined in c++.

Thanks!

Ended up using this
http://www.lua.org/pil/27.3.2.html