summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-14 22:51:26 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-14 22:51:26 +0100
commit0e60d6b7a40e79e1d8a2ad73384acd410f846085 (patch)
treefddd61b1a7eb799754e41d8b225b81f02ac69651
parentfd2420cdcc37941ba5f599f016ceab2b685b7d23 (diff)
downloadswig-0e60d6b7a40e79e1d8a2ad73384acd410f846085.tar.gz
Correct new Raise functions to be static
-rw-r--r--Lib/octave/octtypemaps.swg2
-rw-r--r--Lib/r/r.swg2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/octave/octtypemaps.swg b/Lib/octave/octtypemaps.swg
index 652112312..4984fddf7 100644
--- a/Lib/octave/octtypemaps.swg
+++ b/Lib/octave/octtypemaps.swg
@@ -33,7 +33,7 @@
// raise
%runtime %{
-void SWIG_Octave_Raise(const octave_value &obj, const char *type) {
+SWIGINTERN void SWIG_Octave_Raise(const octave_value &obj, const char *type) {
if (obj.is_string())
error("%s", obj.string_value().c_str());
else
diff --git a/Lib/r/r.swg b/Lib/r/r.swg
index 6907375d6..c1ce37c3e 100644
--- a/Lib/r/r.swg
+++ b/Lib/r/r.swg
@@ -27,7 +27,7 @@ SWIGEXPORT void SWIG_init(void) {
%end_block %enddef
%runtime %{
-void SWIG_R_Raise(SEXP obj, const char *msg) {
+SWIGINTERN void SWIG_R_Raise(SEXP obj, const char *msg) {
Rf_error(Rf_isString(obj) ? CHAR(Rf_asChar(obj)) : msg);
}
%}