[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Using LUA to glue C functions across DLLs?
- From: "Jason P" <ahq_ranger@...>
- Date: Sat, 15 Nov 2003 10:45:17 -0500
Anyone ever do/think of doing this?
Use the LUA state to create an easy way to pass data between C functions,
without ever actually executing any LUA script. The state would act as a
message holder, using the stack functions.
Any idea on the extra overhead of such a method?
lua_pushcfunction(LS,myFunc);
lua_pushstring(LS,"This is a string!");
lua_pushnumber(LS,MyNum);
lua_call(LS,2,0);
like that... ?
JP
_________________________________________________________________
Crave some Miles Davis or Grateful Dead? Your old favorites are always
playing on MSN Radio Plus. Trial month free!
http://join.msn.com/?page=offers/premiumradio