GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing lua-c-api-guide.pages.dev — 总览与准备 - Lua 5.4 C API 交互指南 总览与准备
什么是 Lua C APILua 被设计为一个可嵌入的脚本语言。它提供了一组 C 语言接口,允许宿主程序(Host Program):
关键头文件只需关注两个头文件:
通常 C 文件顶部只需要:
编译环境需要预先安装 Lua 5.4 开发包(如 手动编译通过
Meson(本指南使用)Meson 自动通过
最小可运行程序
这个程序只打印 Lua 版本号,验证开发环境是否正确链接了 Lua 库。后续章节会逐步介绍状态机的创建、使用和销毁。 参考资源源码头文件(Lua 5.4 官方仓库): 致谢感谢 st0nie 提供支持。 | ||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |