Co-authored-by: Recruit_main707 <Recruit_main707@users.noreply.github.com>
This commit is contained in:
parent
b418c54ec4
commit
ed0f8a4973
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue