完成桥接层

This commit is contained in:
2026-03-19 22:04:07 +08:00
parent 4ee065954e
commit a5eb303c4b
5 changed files with 157 additions and 14 deletions

View File

@ -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;
}