lua-users home
lua-l archive

Bind Variables?

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


Hello,
I am new to Embedding Lua to my C App.
I understand that you can Embed your Functions you coded in Pure C by:
luaL_reg(lua_State, "the character name of the function exposed to lua", the
function in C)
But, how can you Glue Variables like that?
Like
So I can put my config in Lua.
And link it easily to:
struct config {
 int keyUp;
 int keyLeft;
 int keyRight;
 int keyDown;
 int volumeEffect;
 int volumeMusic;
 char playerName[9];
} *cfg;
Thanks.
Robin
-- 
View this message in context: http://www.nabble.com/Bind-Variables--tp20288845p20288845.html
Sent from the Lua - General mailing list archive at Nabble.com.

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