summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorJeff Ciesielski <jeffciesielski@gmail.com>2016-07-04 22:52:24 -0400
committerJeff Ciesielski <jeffciesielski@gmail.com>2016-07-04 22:52:24 -0400
commit4f4aafda6c1cc13e1d8073e341344a49507e7174 (patch)
tree69fd10efcd60a50cecec0d5a1ca8ba4fe5051f96 /lib
parent94d1aa5109ebe022e6e51c7cd84033e2457b184f (diff)
downloadNim-4f4aafda6c1cc13e1d8073e341344a49507e7174.tar.gz
Plumb {.intdefine.} and {.strdefine.} pragmas.
Shorthand so that users won't need to use the .magic pragma
Diffstat (limited to 'lib')
-rw-r--r--lib/system/osalloc.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim
index cfa9ae18f..e864253b6 100644
--- a/lib/system/osalloc.nim
+++ b/lib/system/osalloc.nim
@@ -150,7 +150,7 @@ elif defined(windows):
     #VirtualFree(p, size, MEM_DECOMMIT)
 
 elif hostOS == "standalone":
-  const StandaloneHeapSize {.magic: "IntDefine"}: int = 1024 * PageSize
+  const StandaloneHeapSize {.intdefine.}: int = 1024 * PageSize
   var
     theHeap: array[StandaloneHeapSize, float64] # 'float64' for alignment
     bumpPointer = cast[int](addr theHeap)