Plumb {.intdefine.} and {.strdefine.} pragmas.
Shorthand so that users won't need to use the .magic pragma
This commit is contained in:
parent
94d1aa5109
commit
4f4aafda6c
2 changed files with 7 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue