Skip to content

Commit 40f5739

Browse files
authored
Merge pull request #37 from CppCXY/master
修复一个API错误
2 parents 1a5acd9 + 37243b1 commit 40f5739

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)