C语言和Lua的相互调用示例代码

C语言和Lua的相互调用示例代码 本代码参考博客: https://lucasklassmann.com/blog/2019-02-02-how-to-embeddeding-lua-in-c/ /** * @file luaLearn.c * @brief C and Lua call Learn Demo * @version 0.1 * @date 2022-08-19 * * @copyright Copyright (c) 2022 * */ //参考文档 //https://lucasklassmann.com/blog/2019-02-02-how-to-embeddeding-lua-in-c/ #include <stdio.h> #include <lua.h> #include <lualib.h> #include <lauxlib.h> //基本