diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-22 13:56:04 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-22 13:56:04 -0200 |
| commit | 35296e1fde705b3ac8356a4f4ce426497cf7b64c (patch) | |
| tree | 59b369957490dd472f04576afe4a225e399c2995 /lvm.c | |
| parent | bb0185b196773b878f0bf6b6c6a4a01dbf8c2b83 (diff) | |
| download | lua-35296e1fde705b3ac8356a4f4ce426497cf7b64c.tar.gz lua-35296e1fde705b3ac8356a4f4ce426497cf7b64c.tar.bz2 lua-35296e1fde705b3ac8356a4f4ce426497cf7b64c.zip | |
Details
comments and other janitorial work.
Diffstat (limited to '')
| -rw-r--r-- | lvm.c | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -583,7 +583,7 @@ void luaV_concat (lua_State *L, int total) { | |||
| 583 | 583 | ||
| 584 | 584 | ||
| 585 | /* | 585 | /* |
| 586 | ** Main operation 'ra' = #rb'. | 586 | ** Main operation 'ra = #rb'. |
| 587 | */ | 587 | */ |
| 588 | void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) { | 588 | void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) { |
| 589 | const TValue *tm; | 589 | const TValue *tm; |
| @@ -757,11 +757,13 @@ void luaV_finishOp (lua_State *L) { | |||
| 757 | } | 757 | } |
| 758 | break; | 758 | break; |
| 759 | } | 759 | } |
| 760 | case OP_TFORCALL: case OP_CALL: case OP_TAILCALL: | 760 | default: { |
| 761 | case OP_SETTABUP: case OP_SETTABLE: | 761 | /* only these other opcodes can yield */ |
| 762 | case OP_SETI: case OP_SETFIELD: | 762 | lua_assert(op == OP_TFORCALL || op == OP_CALL || |
| 763 | op == OP_TAILCALL || op == OP_SETTABUP || op == OP_SETTABLE || | ||
| 764 | op == OP_SETI || op == OP_SETFIELD); | ||
| 763 | break; | 765 | break; |
| 764 | default: lua_assert(0); | 766 | } |
| 765 | } | 767 | } |
| 766 | } | 768 | } |
| 767 | 769 | ||
