mirror of https://github.com/status-im/nim-eth.git
Don't auto write p2pProtocol macro expansion to file (#678)
This commit is contained in:
parent
b9c40e1380
commit
efe610e27f
|
@ -1005,11 +1005,13 @@ macro emitForSingleBackend(
|
|||
peerState.getType, networkState.getType)
|
||||
|
||||
result = p.genCode()
|
||||
try:
|
||||
result.storeMacroResult true
|
||||
except IOError:
|
||||
# IO error so the generated nim code might not be stored, don't sweat it.
|
||||
discard
|
||||
|
||||
when defined(p2pProtocolDebug):
|
||||
try:
|
||||
result.storeMacroResult true
|
||||
except IOError:
|
||||
# IO error so the generated nim code might not be stored, don't sweat it.
|
||||
discard
|
||||
|
||||
macro emitForAllBackends(backendSyms: typed, options: untyped, body: untyped): untyped =
|
||||
let name = $(options[0])
|
||||
|
|
Loading…
Reference in New Issue