mirror of
https://gitcode.com/JianFeeeee/LuaCangjia_api.git
synced 2026-09-21 09:28:17 +00:00
更新:添加doString方法及对应的单元测试
This commit is contained in:
@ -62,6 +62,12 @@ int unload_lib(void *selfd,const char *name);
|
||||
/// @return 成功返回0,失败返回-1,并将lua出错原因拷贝至result中
|
||||
int run(void *selfd,const char *path,const char *arg);
|
||||
|
||||
/// @brief 执行单句lua语句
|
||||
/// @param selfd init_lua_runner返回的void指针
|
||||
/// @param target 执行语句(字符串类型)
|
||||
/// @return 成功返回0,失败返回-1,并将lua出错原因拷贝至result中
|
||||
int dostring(void *selfd,const char *target);
|
||||
|
||||
/// @brief 清理lua状态机缓存,不销毁状态机
|
||||
/// @param selfd init_lua_runner返回的void指针
|
||||
/// @return 成功返回0,失败返回-1
|
||||
|
||||
Reference in New Issue
Block a user