lua-users home
lua-l archive

Re: C calls Lua or Lua calls C?

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


> In general, when game programmers use C and Lua, to they fire up a C program 
> that calls a Lua script, or do they fire up a Lua script that calls a C 
> program, or are both commonly done?
I am not a game programmer, but I fire up a program written in C which
then creates a Lua state, looks in a certain directory for scripts, and
if found, executes them. These scripts can then register various
callbacks with the main program.

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