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)
|
peerState.getType, networkState.getType)
|
||||||
|
|
||||||
result = p.genCode()
|
result = p.genCode()
|
||||||
try:
|
|
||||||
result.storeMacroResult true
|
when defined(p2pProtocolDebug):
|
||||||
except IOError:
|
try:
|
||||||
# IO error so the generated nim code might not be stored, don't sweat it.
|
result.storeMacroResult true
|
||||||
discard
|
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 =
|
macro emitForAllBackends(backendSyms: typed, options: untyped, body: untyped): untyped =
|
||||||
let name = $(options[0])
|
let name = $(options[0])
|
||||||
|
|
Loading…
Reference in New Issue