use extra space created by the move

This commit is contained in:
LoganDark 2021-11-08 10:23:55 -08:00
parent 40635c0f83
commit 61992a092c
No known key found for this signature in database
GPG key ID: B8C37CEDE1AC60EA

View file

@ -21,8 +21,8 @@
// If luauF_* succeeds, it needs to return *all* requested arguments, filling results with nil as appropriate. // If luauF_* succeeds, it needs to return *all* requested arguments, filling results with nil as appropriate.
// On input, nparams refers to the actual number of arguments (0+), whereas nresults contains LUA_MULTRET for arbitrary returns or 0+ for a // On input, nparams refers to the actual number of arguments (0+), whereas nresults contains LUA_MULTRET for arbitrary returns or 0+ for a
// fixed-length return // fixed-length return
// Because of this, and the fact that "extra" returned values will be ignored, implementations below typically check that nresults // Because of this, and the fact that "extra" returned values will be ignored, implementations below typically check that nresults is <= expected
// is <= expected number, which covers the LUA_MULTRET case. // number, which covers the LUA_MULTRET case.
static int luauF_assert(lua_State* L, StkId res, TValue* arg0, int nresults, StkId args, int nparams) static int luauF_assert(lua_State* L, StkId res, TValue* arg0, int nresults, StkId args, int nparams)
{ {