Mercurial > pub > dyncall > dyncall
diff test/plain_c++/test_main.cc @ 557:b36a738c8975
- dyncallback: fix for calling back win/x64 C++ methods returning non-trivial aggregates (thanks Raphael!)
- test/callback_plain_c++:
* added test code for C++ method callbacks returning non-trivial aggregates
* makefile linker command fix (was linking assuming c and not c++)
- test/plain_c++: comments for completeness
author | Tassilo Philipp |
---|---|
date | Sat, 20 Aug 2022 21:04:15 +0200 |
parents | 0c3f5355769d |
children | fcb9d00b5a00 |
line wrap: on
line diff
--- a/test/plain_c++/test_main.cc Mon Jul 11 23:17:50 2022 +0200 +++ b/test/plain_c++/test_main.cc Sat Aug 20 21:04:15 2022 +0200 @@ -87,11 +87,16 @@ /* * the layout of the VTable is non-standard and it is not clear what is the initial real first method index. - * so far it turns out that: - * on vc/x86 : 1 - * on GCC/x86 : 2 + * so far it turns out, *iff* dtor is defined, that: + * on msvc/x86 : 1 + * on msvc/x64 : 1 + * on gcc/x86 : 2 + * on gcc/x64 : 2 + * on clang/x86 : 2 + * on clang/x64 : 2 */ +// vtable offset to first func of class Value and class ValueMS, skipping dtor #if defined DC__C_MSVC #define VTBI_BASE 1 #else