inlining helper procs

This commit is contained in:
andri lim 2019-12-13 22:01:02 +07:00
parent 6aea929203
commit 190284bfc8
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 2 additions and 2 deletions

View File

@ -673,8 +673,8 @@ const
# The maximum EVM revision supported.
EVMC_MAX_REVISION* = EVMC_BERLIN
proc incl*(a: var evmc_capabilities, b: evmc_capabilities) =
proc incl*(a: var evmc_capabilities, b: evmc_capabilities) {.inline.} =
a = evmc_capabilities(a.uint32 or b.uint32)
proc excl*(a: var evmc_capabilities, b: evmc_capabilities) =
proc excl*(a: var evmc_capabilities, b: evmc_capabilities) {.inline.} =
a = evmc_capabilities(a.uint32 and (not b.uint32))