diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-13 16:20:40 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-13 16:20:40 -0300 |
| commit | 0b63d79b36790febd4c081bf8d6737df27529f8d (patch) | |
| tree | a59ac63d213b00fb0dcaaa65f6d24526c4f260f7 /ldo.c | |
| parent | 279c3a6961c60252f0368fdea889caf977f85fe0 (diff) | |
| download | lua-0b63d79b36790febd4c081bf8d6737df27529f8d.tar.gz lua-0b63d79b36790febd4c081bf8d6737df27529f8d.tar.bz2 lua-0b63d79b36790febd4c081bf8d6737df27529f8d.zip | |
Details
- 'luaL_setfuncs' avoids creating closures for placeholders.
- Fixed some warnings about unused values in comma expressions.
- Comments.
Diffstat (limited to 'ldo.c')
| -rw-r--r-- | ldo.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -669,7 +669,7 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs, | |||
| 669 | else if (L->top - (L->ci->func + 1) == nargs) /* no function? */ | 669 | else if (L->top - (L->ci->func + 1) == nargs) /* no function? */ |
| 670 | return resume_error(L, "cannot resume dead coroutine", nargs); | 670 | return resume_error(L, "cannot resume dead coroutine", nargs); |
| 671 | } | 671 | } |
| 672 | else if (L->status != LUA_YIELD) | 672 | else if (L->status != LUA_YIELD) /* ended with errors? */ |
| 673 | return resume_error(L, "cannot resume dead coroutine", nargs); | 673 | return resume_error(L, "cannot resume dead coroutine", nargs); |
| 674 | if (from == NULL) | 674 | if (from == NULL) |
| 675 | L->nCcalls = 1; | 675 | L->nCcalls = 1; |
