change to make funcptr.ctest work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f67509e154
commit
e459c14e55
1 changed files with 2 additions and 0 deletions
|
|
@ -364,6 +364,8 @@ SWIG_R_ConvertPacked(SEXP obj, void *ptr, size_t sz, swig_type_info *ty) {
|
|||
#ifdef __cplusplus
|
||||
#include <exception>
|
||||
#define SWIG_exception_noreturn(code, msg) do { throw std::runtime_error(msg); } while(0);
|
||||
#else
|
||||
#define SWIG_exception_noreturn(code, msg) do { return result; } while(0);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue