# SDL_lua **Repository Path**: wangsi/SDL_lua ## Basic Information - **Project Name**: SDL_lua - **Description**: 这是一个连接c与lua的函数库!封装一些 c 语言操作 lua 的函数,可以方便c与lua交互!详细请参考wiki手册! - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-01-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SDL_lua **SDL_lua是一个在C语言编程环境下,方便与lua语言交互的c语言函数库,虽然它叫SDL_lua ,但它与SDL其实并没有任何关系** ### 版本 ** Lua使用的版本是 5.1 ,请不要弄错咯 ### 加载函数 * [LUA_load_script] :此函数用来加载lua脚本文件 ### 对全局进行操作的函数 * [LUA_do_function] :此函数用来运行脚本文件里的全局函数 * [LUA_get_int_from_global] :用来读取int全局变量 * [LUA_get_string_from_global] :用来读取string类型全局变量 ### 对lua表进行操作的函数 * [LUA_open_table] :打开一个lua表 * [LUA_get_int_from_int_key] :读取表内键值为int,内容为int类型的数据 * [LUA_get_int_from_string_key] :读取表内键值为string,内容为int 类型的数据 * [LUA_get_string_from_string_key] :读取表内键值为string,内容为strig类型的数据 * [LUA_get_string_from_int_key] :读取表内健值为int,内容为string类型的数据 详细的函数说明,请阅读本项目的wiki, [点我坐飞机](https://git.oschina.net/wangsi/SDL_lua/wikis/home)