Defines all code for owlkettle-specific code generation. This is an extension of the codegen module.
Macros
macro owlThreadServer(name: static string; body: untyped)
-
An owlkettle specific version of threadServer .
Differs from threadServer by requiring procs in the handler section to have a different shape:
proc <procName>(msg: <YourMsgType>, hub: ChannelHub, state: <Widget>State)
Source Edit macro prepareOwlServers(widgetNode: typed)
-
An owlkettle specific version of prepareServers .
Differs from prepareServers by generating a special routing proc instead of the "normal" one from genMessageRouter for threadServers defined with owlThreadServer .
Source Edit