summary refs log tree commit diff stats
path: root/compiler/trees.nim
diff options
context:
space:
mode:
authorJeff Ciesielski <jeffciesielski@gmail.com>2016-07-04 18:11:25 -0400
committerJeff Ciesielski <jeffciesielski@gmail.com>2016-07-04 18:11:25 -0400
commit94d1aa5109ebe022e6e51c7cd84033e2457b184f (patch)
tree7b3043a0139070ca5e526bf41bab60eb5ddae593 /compiler/trees.nim
parent38de553b86fd5f42c726da9bceb6828fb835eff5 (diff)
downloadNim-94d1aa5109ebe022e6e51c7cd84033e2457b184f.tar.gz
Add the ability to pass a value with the -d flag
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time.  This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
Diffstat (limited to 'compiler/trees.nim')
0 files changed, 0 insertions, 0 deletions