fixes crash related to runnableExamples in Nim doc that yet uses the VM
This commit is contained in:
parent
f70d967d2c
commit
14f2578604
1 changed files with 2 additions and 0 deletions
|
|
@ -1130,6 +1130,8 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
|
||||||
# produces a value
|
# produces a value
|
||||||
else:
|
else:
|
||||||
globalError(n.info, "expandToAst requires a call expression")
|
globalError(n.info, "expandToAst requires a call expression")
|
||||||
|
of mRunnableExamples:
|
||||||
|
discard "just ignore any call to runnableExamples"
|
||||||
else:
|
else:
|
||||||
# mGCref, mGCunref,
|
# mGCref, mGCunref,
|
||||||
globalError(n.info, "cannot generate code for: " & $m)
|
globalError(n.info, "cannot generate code for: " & $m)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue