blob: eab26244e3ecb8db7282e8b807f8c08c321d5820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
%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; }
%}
|