Make DSL blocks callable procedures

This commit is contained in:
Emery Hemingway 2021-09-21 16:39:57 +02:00
parent 62464a0cc1
commit b0c92ea5de
1 changed files with 2 additions and 2 deletions

View File

@ -208,8 +208,8 @@ template syndicate*(ident, dataspaceBody: untyped): untyped =
proc `ident`*(facet: Facet) =
proc getCurrentFacet(): Facet {.inject, used.} = facet
dataspaceBody
when isMainModule:
asyncCheck bootModule("", `ident`)
proc `ident`*(name = ""): Future[void] =
bootModule(name, `ident`)
type BootProc* = proc (facet: Facet) {.gcsafe.}