Jan Ulvesten
Jan Ulvesten

Reputation: 81

Sharing data between C and Lua version 5.2

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

Answers (1)

lhf
lhf

Reputation: 72422

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

Upvotes: 4

Related Questions