PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/extern_throws.i

#
Swig | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 446a54b859aed055dca615d36797863d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module extern_throws
  2. %{
  3. #if defined(_MSC_VER)
  4. #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
  5. #endif
  6. %}
  7. %inline %{
  8. #include <exception>
  9. extern int get() throw(std::exception);
  10. %}
  11. %{
  12. int get() throw(std::exception) { return 0; }
  13. %}