Simple example to demonstrate how to call Lua functions from C
git clone https://github.com/xsnpdngv/LuaDemo.git
cd LuaDemo
make
# ./lua_demo <Lua_file> <Lua_func> [<Lua_arg1>[, ...]]
./lua_demo foo.lua bar "Hello world"
./lua_demo foo.lua baz "Hello" "world"