0

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

Community
  • 1
  • 1

1 Answers1

4

In Lua 5.2, use luaL_setfuncs(L,array,0) instead of luaL_openlib(L,NULL,array,0).

lhf
  • 70,581
  • 9
  • 108
  • 149