summary refs log tree commit diff stats
path: root/tools/vccexe
diff options
context:
space:
mode:
authorPMunch <peterme@peterme.net>2020-05-12 20:28:18 +0200
committerGitHub <noreply@github.com>2020-05-12 20:28:18 +0200
commit9acbf99efb42d7d3f98f3d1d6677923fc4dd3a28 (patch)
tree285412bf78787fd66f2719c84eacf0f6d1bd90a4 /tools/vccexe
parent82f008158cbc023c5e20103bfb4bda317be52fb2 (diff)
downloadNim-9acbf99efb42d7d3f98f3d1d6677923fc4dd3a28.tar.gz
Allow let to not have value when using importc (#14258)
* Allow let to not have value when using importc

This allows a let statement with the `{.importc.}` pragma to not be
initialised with a value. This allows us to declare C constants as Nim
lets without putting the value in the Nim code (which can lead to
errors, and requires us to go looking for the value). Fixes #14253

* Proper fix and documentation + changelog entry

* Improve testcase with one from timotheecour

* Add test to verify it working with macros
Diffstat (limited to 'tools/vccexe')
0 files changed, 0 insertions, 0 deletions