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

Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com>
(cherry picked from commit ed0f8a4973)
This commit is contained in:
RecruitMain707
2020-10-20 14:22:02 +02:00
committed by narimiran
parent 38ebd767db
commit 5874bce91c

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)