aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-06 17:08:00 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-06 17:08:00 -0200
commit118347d8c3b83ea0291918e81c5367937316fabb (patch)
treeb77d5b6e03d9ae20841bd80a50cc56237bdf16f5 /lvm.c
parent6820da509686ce06fdb3de58856056476f55f534 (diff)
downloadlua-118347d8c3b83ea0291918e81c5367937316fabb.tar.gz
lua-118347d8c3b83ea0291918e81c5367937316fabb.tar.bz2
lua-118347d8c3b83ea0291918e81c5367937316fabb.zip
new API for coroutines
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index 8b72ae92..86e1596b 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.257 2002/10/08 18:46:08 roberto Exp roberto $ 2** $Id: lvm.c,v 1.258 2002/10/25 20:05:28 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*/
@@ -592,6 +592,7 @@ StkId luaV_execute (lua_State *L) {
592 if (firstResult > L->top) { /* yield? */ 592 if (firstResult > L->top) { /* yield? */
593 (L->ci - 1)->u.l.savedpc = pc; 593 (L->ci - 1)->u.l.savedpc = pc;
594 (L->ci - 1)->state = CI_SAVEDPC; 594 (L->ci - 1)->state = CI_SAVEDPC;
595 L->ci->state |= CI_YIELD;
595 return NULL; 596 return NULL;
596 } 597 }
597 /* it was a C function (`precall' called it); adjust results */ 598 /* it was a C function (`precall' called it); adjust results */