lua-users home
lua-l archive

Re: Call module function from C

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


On 18 Dec 2007, at 01:31, Tony Paloma wrote:
I'm trying to call a module function from C. What I tried to do was this:
lua_getglobal(GetLuaState(), "hook.Call");
You'll need to get "hook" and then "Call" (via lua_getfield).
David Dunham Utility Infielder GameHouse Studios
w: +1 206 926 5722 m: +1 206 769 2227 www.gamehouse.com
"TV--what a waste. You could be playing games, or reading a
book, for that matter." -- Greg Costikyan

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