File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
7
7
Version 4.1.0 (in progress)
8
8
===========================
9
9
10
+ 2022-10-24: wsfulton
11
+ [R] Add support for special variable replacement in the $typemap()
12
+ special variable macro for R specific typemaps (rtype, rtypecheck,
13
+ scoercein, scoereout).
14
+
10
15
2022-10-24: wsfulton
11
16
[R] Polymorphism in the wrappers was only working for C++ classes,
12
17
now this works for C++ structs too.
Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ class R : public Language {
242
242
return status;
243
243
}
244
244
245
- // Not used:
246
245
String *runtimeCode ();
246
+ void replaceSpecialVariables (String *method, String *tm, Parm *parm);
247
247
248
248
protected:
249
249
int addRegistrationRoutine (String *rname, int nargs);
@@ -2666,6 +2666,16 @@ String * R::runtimeCode() {
2666
2666
return s;
2667
2667
}
2668
2668
2669
+ /* ----------------------------------------------------------------------
2670
+ * replaceSpecialVariables()
2671
+ *--------------------------------------------------------------------*/
2672
+
2673
+ void R::replaceSpecialVariables (String *method, String *tm, Parm *parm) {
2674
+ (void )method;
2675
+ SwigType *type = Getattr (parm, " type" );
2676
+ replaceRClass (tm, type);
2677
+ }
2678
+
2669
2679
2670
2680
/* -----------------------------------------------------------------------
2671
2681
* Called when SWIG wants to initialize this
You can’t perform that action at this time.
0 commit comments