diff options
author | Jeff Ciesielski <jeffciesielski@gmail.com> | 2016-07-04 22:52:24 -0400 |
---|---|---|
committer | Jeff Ciesielski <jeffciesielski@gmail.com> | 2016-07-04 22:52:24 -0400 |
commit | 4f4aafda6c1cc13e1d8073e341344a49507e7174 (patch) | |
tree | 69fd10efcd60a50cecec0d5a1ca8ba4fe5051f96 /lib | |
parent | 94d1aa5109ebe022e6e51c7cd84033e2457b184f (diff) | |
download | Nim-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.nim | 2 |
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) |