/trunk/Examples/test-suite/extern_throws.i
# · Swig · 18 lines · 13 code · 5 blank · 0 comment · 0 complexity · 446a54b859aed055dca615d36797863d MD5 · raw file
- %module extern_throws
- %{
- #if defined(_MSC_VER)
- #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
- #endif
- %}
- %inline %{
- #include <exception>
- extern int get() throw(std::exception);
- %}
- %{
- int get() throw(std::exception) { return 0; }
- %}