Reputation: 81
All,
See post
An excellent post on how to share data between C and Lua. There is only one problem, it doesn't run on 5.2 due to missing luaL_openlib() support.
Any idea on how to fix that?
Jan
Upvotes: 0
Views: 203
Reputation: 72422
In Lua 5.2, use luaL_setfuncs(L,array,0)
instead of luaL_openlib(L,NULL,array,0)
.
Upvotes: 4