Fix lbuiltins.cpp comment

This commit is contained in:
LoganDark 2021-11-08 10:21:12 -08:00
parent f1649a43cd
commit 40635c0f83
No known key found for this signature in database
GPG key ID: B8C37CEDE1AC60EA

View file

@ -20,7 +20,8 @@
// If types of the arguments mismatch, luauF_* needs to return -1 and the execution will fall back to the usual call path // If types of the arguments mismatch, luauF_* needs to return -1 and the execution will fall back to the usual call path
// 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 Because of this, and the fact that "extra" returned values will be ignored, implementations below typically check that nresults // fixed-length return
// Because of this, and the fact that "extra" returned values will be ignored, implementations below typically check that nresults
// is <= expected number, which covers the LUA_MULTRET case. // is <= expected 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)