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
|
||||
else:
|
||||
globalError(n.info, "expandToAst requires a call expression")
|
||||
of mRunnableExamples:
|
||||
discard "just ignore any call to runnableExamples"
|
||||
else:
|
||||
# mGCref, mGCunref,
|
||||
globalError(n.info, "cannot generate code for: " & $m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue