swig/Examples/c/exception/example.i
Vadim Zeitlin dfac9ce325 Show how to handle a custom exception class in the example
Define "throws" typemap for it.
2016-09-15 01:27:40 +02:00

14 lines
226 B
OpenEdge ABL

/* File : example.i */
%module example
%{
#include "example.h"
%}
%typemap(throws, noblock="1") Exc {
SWIG_exception(SWIG_RuntimeError, $1.msg);
}
/* Let's just grab the original header file here */
%include "example.h"