summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-05 15:45:30 +0200
committerGitHub <noreply@github.com>2016-07-05 15:45:30 +0200
commit689d3f75cf2438440b27816fc0be21ff15d9b9b2 (patch)
treea650a503ff245ab9fa2081031fab03a03666e73e /lib
parent5f9da6b2ae137feb762c149ed5a7e0eb0f23a17d (diff)
parent11730e6c3b468621258f99539284d75fecafe276 (diff)
downloadNim-689d3f75cf2438440b27816fc0be21ff15d9b9b2.tar.gz
Merge pull request #4445 from Jeff-Ciesielski/jeffc/define_assignments
Add the ability to pass a value with the -d flag
Diffstat (limited to 'lib')
-rw-r--r--lib/system/osalloc.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim
index de26f52d9..e864253b6 100644
--- a/lib/system/osalloc.nim
+++ b/lib/system/osalloc.nim
@@ -150,8 +150,9 @@ elif defined(windows):
     #VirtualFree(p, size, MEM_DECOMMIT)
 
 elif hostOS == "standalone":
+  const StandaloneHeapSize {.intdefine.}: int = 1024 * PageSize
   var
-    theHeap: array[1024*PageSize, float64] # 'float64' for alignment
+    theHeap: array[StandaloneHeapSize, float64] # 'float64' for alignment
     bumpPointer = cast[int](addr theHeap)
 
   proc osAllocPages(size: int): pointer {.inline.} =