Mark template within a macros as always used

This commit is contained in:
Emery Hemingway 2021-11-03 19:22:09 +01:00
parent babc58526c
commit 123fb79bbe
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ proc wrapPublishHandler(handler: NimNode): NimNode =
proc `handlerSym`(entity: Entity; `turnSym`: var Turn; bindings: Assertion; `handleSym`: Handle) =
`varSectionOuter`
if fromPreserve(`valuesSym`, bindings):
template `onRetractIdent`(retractBody: untyped): untyped =
template `onRetractIdent`(retractBody: untyped): untyped {.used.} =
proc callback(e: Entity; turn: var Turn; h: Handle) =
retractBody
entity.retractImpl = callback # TODO: fine to clobber previous callback?