File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/java/net/hollowcube/luau Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ Set Functions (Stack -> Lua)
201201
202202 int yield (int resultCount );
203203 int break_ ();
204- @ NotNull LuaStatus resume (@ NotNull LuaState from , int argCount );
204+ @ NotNull LuaStatus resume (@ Nullable LuaState from , int argCount );
205205 @ NotNull LuaStatus resumeError (@ NotNull LuaState from );
206206 @ NotNull LuaStatus status ();
207207 boolean isYieldable ();
Original file line number Diff line number Diff line change @@ -675,8 +675,9 @@ public int break_() {
675675 }
676676
677677 @ Override
678- public @ NotNull LuaStatus resume (@ NotNull LuaState from , int argCount ) {
679- final int status = lua_resume (L , ((LuaStateImpl ) from ).L , argCount );
678+ public @ NotNull LuaStatus resume (@ Nullable LuaState from , int argCount ) {
679+ final MemorySegment fromL = from != null ? ((LuaStateImpl ) from ).L : MemorySegment .NULL ;
680+ final int status = lua_resume (L , fromL , argCount );
680681 return LuaStatus .byId (status );
681682 }
682683
You can’t perform that action at this time.
0 commit comments