|
> Besides, I would like to know: is there any difference > in declaring C static variables vs. using the Lua registry? Yes. Your library should work for any number of independent Lua states. If the static data varies per state, then it cannot be static :-)