first version of 'spawn'
This commit is contained in:
parent
b961e47bfe
commit
8e08ff559f
9 changed files with 188 additions and 37 deletions
|
|
@ -1632,6 +1632,9 @@ proc genMagicExpr(p: BProc, e: PNode, d: var TLoc, op: TMagic) =
|
|||
localError(e.info, errCannotGenerateCodeForX, e.sons[0].sym.name.s)
|
||||
of mSlurp..mQuoteAst:
|
||||
localError(e.info, errXMustBeCompileTime, e.sons[0].sym.name.s)
|
||||
of mSpawn:
|
||||
let n = lowerings.wrapProcForSpawn(p.module.module, e.sons[1])
|
||||
expr(p, n, d)
|
||||
else: internalError(e.info, "genMagicExpr: " & $op)
|
||||
|
||||
proc genConstExpr(p: BProc, n: PNode): PRope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue