/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/c/exception/example.i
16 строк
357 B
Vadim Zeitlin
Don't use exception specification with C++ compiler in example
24 ноя 2021, 22:16
24 ноя 2021, 22:16
d2546e2
Код
Авторство
О чём код?
/* File : example.i */ %module example %{ #include "example.h" %} %typemap(throws, noblock="1") Exc { SWIG_exception(SWIG_RuntimeError, $1.msg); } /* This needs to be defined for SWIG, even though it can't be used in C++ any more. */ #define SWIG_THROW(...) throw(__VA_ARGS__) /* Let's just grab the original header file here */ %include "example.h"