文件名称:main
介绍说明--下载内容均来自于网络,请自行研究使用
该程序主要是C++与Lua之间的相互调用示例。
执行内容:
(1)新建一个lua_State
(2)打开常用库,如io,os,table,string等
(3)注册C函数
(4)导入程序所在目录下所有*.lua文件
(5)调用Lua中的MainEntry()函数-The program is mainly C++ between Lua calls with examples. Runs: (1) Create a lua_State (2) open common libraries, such as io, os, table, string, etc. (3) registered C function (4) into the directory where the program all*. Lua files (5) call in Lua The MainEntry () function
执行内容:
(1)新建一个lua_State
(2)打开常用库,如io,os,table,string等
(3)注册C函数
(4)导入程序所在目录下所有*.lua文件
(5)调用Lua中的MainEntry()函数-The program is mainly C++ between Lua calls with examples. Runs: (1) Create a lua_State (2) open common libraries, such as io, os, table, string, etc. (3) registered C function (4) into the directory where the program all*. Lua files (5) call in Lua The MainEntry () function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main.cpp