diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-10-20 15:56:21 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-10-20 15:56:21 -0200 |
commit | f7670781cf67a4bfb0799d1800a87b2c4a19ad59 (patch) | |
tree | 94609bc437a744ccdb3ac05662705cb2a34cec4d /lvm.c | |
parent | df8b996bccd3830d6fe9d7ba80e8fccd6ac3cabf (diff) | |
download | lua-f7670781cf67a4bfb0799d1800a87b2c4a19ad59.tar.gz lua-f7670781cf67a4bfb0799d1800a87b2c4a19ad59.tar.bz2 lua-f7670781cf67a4bfb0799d1800a87b2c4a19ad59.zip |
cleaner definition for 'luaC_condGC', using 'pre'/'pos' parameters
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.253 2015/09/17 15:51:05 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.254 2015/10/20 17:41:35 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -733,10 +733,9 @@ void luaV_finishOp (lua_State *L) { | |||
733 | #define Protect(x) { {x;}; base = ci->u.l.base; } | 733 | #define Protect(x) { {x;}; base = ci->u.l.base; } |
734 | 734 | ||
735 | #define checkGC(L,c) \ | 735 | #define checkGC(L,c) \ |
736 | Protect( luaC_condGC(L,{L->top = (c); /* limit of live values */ \ | 736 | { luaC_condGC(L, L->top = (c), /* limit of live values */ \ |
737 | luaC_step(L); \ | 737 | Protect(L->top = ci->top)); /* restore top */ \ |
738 | L->top = ci->top;}) /* restore top */ \ | 738 | luai_threadyield(L); } |
739 | luai_threadyield(L); ) | ||
740 | 739 | ||
741 | 740 | ||
742 | #define vmdispatch(o) switch(o) | 741 | #define vmdispatch(o) switch(o) |