lua-users home
lua-l archive

using code from multiple files

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
I am trying to use two lua script files together, and let them call functions from each other, but i can't get this working. I try to load both scripts with the luaL_loadfile function, but when I load the second script, I can't access anything from the first script any more (I have the impression that it's still loaded, because the stack is larger than when I only load the second file.
What is the best way to do this?
Greets,
Lieven van der Heide

AltStyle によって変換されたページ (->オリジナル) /