diff options
author | Jeff Ciesielski <jeffciesielski@gmail.com> | 2016-07-04 18:11:25 -0400 |
---|---|---|
committer | Jeff Ciesielski <jeffciesielski@gmail.com> | 2016-07-04 18:11:25 -0400 |
commit | 94d1aa5109ebe022e6e51c7cd84033e2457b184f (patch) | |
tree | 7b3043a0139070ca5e526bf41bab60eb5ddae593 /compiler/sigmatch.nim | |
parent | 38de553b86fd5f42c726da9bceb6828fb835eff5 (diff) | |
download | Nim-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/sigmatch.nim')
0 files changed, 0 insertions, 0 deletions