mirror of
https://gitcode.com/JianFeeeee/LuaCangjia_api.git
synced 2026-09-23 02:18:09 +00:00
完成桥接层
This commit is contained in:
@ -308,7 +308,7 @@ void *init_lua_runner(const char *pathio,const char *pkgpath,int(*input)(),int(*
|
||||
if(pathio == NULL)
|
||||
{
|
||||
errno = NAPI_LUA_MISS_REDIRECT;
|
||||
return NULL;
|
||||
goto WITHOUT_REDIRECT;
|
||||
}
|
||||
//装载重定向函数
|
||||
io_path->funcs.io_input = input;
|
||||
@ -320,7 +320,7 @@ void *init_lua_runner(const char *pathio,const char *pkgpath,int(*input)(),int(*
|
||||
errno = NAPI_LUA_STATE_ERROR;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
WITHOUT_REDIRECT:
|
||||
return (void*)self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user