aboutsummaryrefslogtreecommitdiffhomepage
path: root/hooks
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-11-15 09:09:04 +0100
committerAyke <[email protected]>2024-11-15 10:11:57 +0100
commit6d4dfcf72fb5dd4cc9130c3b883fd313a5b8dac3 (patch)
tree95845071ea74b4a29f455be3afeac633edba905e /hooks
parentac9f72be617e6e72423fa7afd6bcd2aaf9377d27 (diff)
downloadtinygo-6d4dfcf72fb5dd4cc9130c3b883fd313a5b8dac3.tar.gz
tinygo-6d4dfcf72fb5dd4cc9130c3b883fd313a5b8dac3.zip
compiler, runtime: move constants into shared package
Use a single package for certain constants that must be the same between the compiler and the runtime. While just using the same values in both places works, this is much more obvious and harder to mess up. It also avoids the need for comments pointing to the other location the constant is defined. And having it in code makes it possible for IDEs to analyze the source. In the future, more such constants and maybe algorithms can be added.
Diffstat (limited to 'hooks')
0 files changed, 0 insertions, 0 deletions