Mark template within a macros as always used
This commit is contained in:
parent
babc58526c
commit
123fb79bbe
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue