parent
7cb2f46e06
commit
7a21da90fd
2 changed files with 6 additions and 2 deletions
|
|
@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
||||||
Version 4.1.0 (in progress)
|
Version 4.1.0 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2022-02-03: olly
|
||||||
|
[C#] #283 #998 Fix memory leak in directorin typemap for
|
||||||
|
std::string.
|
||||||
|
|
||||||
2022-02-03: olly
|
2022-02-03: olly
|
||||||
[Python] #967 Make `self` parameter available to user typemaps.
|
[Python] #967 Make `self` parameter available to user typemaps.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace std {
|
||||||
class string;
|
class string;
|
||||||
|
|
||||||
// string
|
// string
|
||||||
%typemap(ctype) string "char *"
|
%typemap(ctype) string "const char *"
|
||||||
%typemap(imtype) string "string"
|
%typemap(imtype) string "string"
|
||||||
%typemap(cstype) string "string"
|
%typemap(cstype) string "string"
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ class string;
|
||||||
}
|
}
|
||||||
$result.assign($input); %}
|
$result.assign($input); %}
|
||||||
|
|
||||||
%typemap(directorin) string %{ $input = SWIG_csharp_string_callback($1.c_str()); %}
|
%typemap(directorin) string %{ $input = $1.c_str(); %}
|
||||||
|
|
||||||
%typemap(csin) string "$csinput"
|
%typemap(csin) string "$csinput"
|
||||||
%typemap(csout, excode=SWIGEXCODE) string {
|
%typemap(csout, excode=SWIGEXCODE) string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue