lua以xpcall实现try/catch功能
##输出结果如下: >lua -e "io.stdout:setvbuf 'no'" "itertor_test.lua" message test tryc ...
##输出结果如下: >lua -e "io.stdout:setvbuf 'no'" "itertor_test.lua" message test tryc ...
vs2013+lua5.3.3 1.涉及函数 主要C函数:lua_call和lua_pcall 主要lua函数xpcall 2.正常使用lua_call ①hello.lua文件内容 ②C++文件内容(主要内容在test_func函数中的lua_call函数 ...