summary refs log tree commit diff stats
path: root/tests/cpp/enum.hpp
diff options
context:
space:
mode:
authorTomohiro <gpuppur@gmail.com>2024-01-10 01:37:41 +0900
committerGitHub <noreply@github.com>2024-01-09 17:37:41 +0100
commite20a2b1f2bd2a55f16ed5d66f37bbb562c27f7cd (patch)
tree0daf3ceff103da9fe99027a50bc049a9942c2f43 /tests/cpp/enum.hpp
parent8d1c722d2d380ac998495ea508527f9f1c998233 (diff)
downloadNim-e20a2b1f2bd2a55f16ed5d66f37bbb562c27f7cd.tar.gz
Nim manual: better byref pragma explanation (#23192)
Nim manual says:
> When using the Cpp backend, params marked as byref will translate to
cpp references `&`

But how `byref` pragma translate to depends on whether it is used with
`importc` or `importcpp`.
When `byref` pragma used with `importc` types and compiled with the Cpp
backend, it is not traslated to cpp reference `&`.

---------

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'tests/cpp/enum.hpp')
0 files changed, 0 insertions, 0 deletions