Fix compilation error for regions and memory profiling (#15641) (#15656)

Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com>
This commit is contained in:
RecruitMain707 2020-10-20 14:22:02 +02:00 • committed by GitHub
commit ed0f8a4973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,9 @@
# "Stack GC" for embedded devices or ultra performance requirements.
when defined(memProfiler):
proc nimProfile(requestedSize: int) {.benign.}
when defined(useMalloc):
proc roundup(x, v: int): int {.inline.} =
result = (x + (v-1)) and not (v-1)