swig/Lib/c
Vadim Zeitlin 579c343d5f Represent enums as enums, not int, if possible
Use enum types instead of int for the enum-valued parameters and
function return values, this is more type-safe and clear for the users
of the library.

Change cpp_enum unit test to use C++ to check that C++ enum wrappers
can at least be compiled, but still use C API in it.

Note that enum whose underlying type is bigger than int still don't
work, but this is no different from what it was before, so just document
this limitation but don't do anything else about it for now.

This commit is best viewed ignoring whitespace-only changes.
2021-11-30 02:22:25 +01:00
..
boost_shared_ptr.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
c.swg Represent enums as enums, not int, if possible 2021-11-30 02:22:25 +01:00
cexcept.swg Make global SWIG_CException::PendingException thread-local 2021-11-27 00:19:05 +01:00
cheader.swg Make SWIGIMPORT definition more consistent with SWIGEXPORT 2021-10-20 01:57:18 +02:00
clabels.swg Remove unused SWIGPROTECT 2016-04-13 18:10:35 +02:00
std_common.i Revert "Use std/std_vector.i instead of a poor copy in c/std_vector.i" 2021-10-07 22:03:47 +02:00
std_except.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00
std_map.i Fix std::map<> typemap 2021-10-07 22:03:47 +02:00
std_pair.i Add trivial but working std::pair typemaps implementation 2019-08-07 02:16:33 +02:00
std_set.i Add simple std::set<> typemaps too 2021-10-07 22:03:47 +02:00
std_shared_ptr.i Add minimal shared_ptr support 2021-10-15 01:26:22 +02:00
std_string.i Streamline and fix returning objects by value 2019-08-06 02:35:25 +02:00
std_vector.i Allow using vector with classes without default ctor in C too 2021-10-07 22:03:47 +02:00
stl.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00
typemaps.i Many major improvements. Almost all testsuite compiles now. 2009-04-15 23:30:16 +00:00