Use wrapper functions for global variables of non-C types

Don't try to export the variables whose type can't be represented in C
directly, this can't work.

Instead, just let use the default implementation to generate wrapper functions
for them.

Update "cpp_basic_global_var_class" unit test accordingly and remove it from
the list of the failing tests.
This commit is contained in:
Vadim Zeitlin 2016-04-19 00:31:12 +02:00
commit c8e4abd16e
3 changed files with 29 additions and 10 deletions

View file

@ -3,7 +3,7 @@
int main(int argc, const char *argv[])
{
assert(myGlobalClassInstance);
assert(myGlobalClassInstance_get());
return 0;
}