Skip to content

Commit 37243b1

Browse files
committed
修复一个API错误
1 parent c5709aa commit 37243b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emmy_debugger/src/api/lua_api_loader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ void lua_call(lua_State* L, int nargs, int nresults)
274274
{
275275
if (luaVersion > LuaVersion::LUA_51)
276276
{
277-
e_lua_callk(L, nargs, nresults, 0, nullptr);
277+
return e_lua_callk(L, nargs, nresults, 0, nullptr);
278278
}
279-
e_lua_call(L, nargs, nresults);
279+
return (void)e_lua_call(L, nargs, nresults);
280280
}
281281

282282
int lua_pcall(lua_State* L, int nargs, int nresults, int errfunc)

0 commit comments

Comments
 (0)