You can also declare constants inside a lib
declaration:
@[Link("pcre")] lib PCRE INFO_CAPTURECOUNT = 2 end PCRE::INFO_CAPTURECOUNT #=> 2
To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/syntax_and_semantics/c_bindings/constants.html