[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Call module function from C
- From: David Dunham <david@...>
- Date: Tue, 18 Dec 2007 08:42:14 -0800
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