Is it possible / practical to use a Lua hash table outside of Lua?

I need a hash table container in a C project that includes Lua. I am wondering if it is possible to use a hash table in Lua as a shared container. I looked at ltable.h, and all functions require a Lua state and seem to be tied to a Lua environment, so I assume this is impractical if the data should be independent of Lua.

+5
source share
2 answers

This is possible, and the easiest way is to simply use the official C API for Lua. No need to dig inside the ltable.h.

+5
source

luabind luabridge, , ++ (, stl-) Lua; Lua. , Lua Lua, .

0

All Articles