Skip to content

Commit f0e157e

Browse files
committed
also os allocator
1 parent fdbcbec commit f0e157e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/system/osalloc.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# distribution, for details about the copyright.
88
#
99

10+
{.push raises: [], gcsafe.}
11+
1012
proc roundup(x, v: int): int {.inline.} =
1113
result = (x + (v-1)) and not (v-1)
1214
sysAssert(result >= x, "roundup: result < x")
@@ -216,3 +218,5 @@ elif hostOS == "standalone" or defined(StandaloneHeapSize):
216218

217219
else:
218220
{.error: "Port memory manager to your platform".}
221+
222+
{.pop.}

0 commit comments

Comments
 (0)