diff options
author | Araq <rumpf_a@web.de> | 2017-02-26 20:41:08 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-26 20:41:08 +0100 |
commit | df4954fac6c2b3663afbcdbd700ef73658fb4ef4 (patch) | |
tree | d8043ecb4db38005656151d20ca564f20604fc7e | |
parent | 46b672a6c4771d150d78b1fb62ebd6323af3227a (diff) | |
download | Nim-df4954fac6c2b3663afbcdbd700ef73658fb4ef4.tar.gz |
fixes most recent codegen regression
-rw-r--r-- | lib/system.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim index 6388e278e..4371f0000 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3149,20 +3149,20 @@ when not defined(JS): #and not defined(nimscript): ## retrieves the raw proc pointer of the closure `x`. This is ## useful for interfacing closures with C. {.emit: """ - `result` = `x`.ClPrc; + `result` = `x`.ClP_0; """.} proc rawEnv*[T: proc](x: T): pointer {.noSideEffect, inline.} = ## retrieves the raw environment pointer of the closure `x`. This is ## useful for interfacing closures with C. {.emit: """ - `result` = `x`.ClEnv; + `result` = `x`.ClE_0; """.} proc finished*[T: proc](x: T): bool {.noSideEffect, inline.} = ## can be used to determine if a first class iterator has finished. {.emit: """ - `result` = *((NI*) `x`.ClEnv) < 0; + `result` = *((NI*) `x`.ClE_0) < 0; """.} elif defined(JS): |