mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Fix lbuiltins.cpp comment (#180)
This commit is contained in:
parent
f1649a43cd
commit
7ca09ec100
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@
|
||||||
// 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
|
||||||
// is <= expected number, which covers the LUA_MULTRET case.
|
// 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.
|
||||||
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue