diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-06 18:34:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-06 18:34:34 -0300 |
commit | 3670db99b65f74d2671bfa9aa37ca7794c32332d (patch) | |
tree | 4588bee603eef2306290b781f51c6d781ade3ebe /lstate.h | |
parent | e14a02c24f22ff03bba4a0582f56d7af518339df (diff) | |
download | lua-3670db99b65f74d2671bfa9aa37ca7794c32332d.tar.gz lua-3670db99b65f74d2671bfa9aa37ca7794c32332d.tar.bz2 lua-3670db99b65f74d2671bfa9aa37ca7794c32332d.zip |
comments
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.114 2014/07/23 17:15:43 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.115 2014/08/01 17:33:08 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -54,7 +54,13 @@ typedef struct stringtable { | |||
54 | 54 | ||
55 | 55 | ||
56 | /* | 56 | /* |
57 | ** information about a call | 57 | ** Information about a call. |
58 | ** When a thread yields, 'func' is adjusted to pretend that the | ||
59 | ** top function has only the yielded values in its stack; in that | ||
60 | ** case, the actual 'func' value is saved in field 'extra'. | ||
61 | ** When a function calls another with a continuation, 'extra' keeps | ||
62 | ** the function index so that, in case of errors, the continuation | ||
63 | ** function can be called with the correct top. | ||
58 | */ | 64 | */ |
59 | typedef struct CallInfo { | 65 | typedef struct CallInfo { |
60 | StkId func; /* function index in the stack */ | 66 | StkId func; /* function index in the stack */ |