PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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
 1%module extern_throws 
 2
 3%{
 4#if defined(_MSC_VER)
 5  #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
 6#endif
 7%}
 8
 9%inline %{
10#include <exception>
11extern int get() throw(std::exception);
12
13%}
14
15%{
16int get() throw(std::exception) { return 0; }
17%}
18