We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbcbec commit f0e157eCopy full SHA for f0e157e
lib/system/osalloc.nim
@@ -7,6 +7,8 @@
7
# distribution, for details about the copyright.
8
#
9
10
+{.push raises: [], gcsafe.}
11
+
12
proc roundup(x, v: int): int {.inline.} =
13
result = (x + (v-1)) and not (v-1)
14
sysAssert(result >= x, "roundup: result < x")
@@ -216,3 +218,5 @@ elif hostOS == "standalone" or defined(StandaloneHeapSize):
216
218
217
219
else:
220
{.error: "Port memory manager to your platform".}
221
222
+{.pop.}
0 commit comments