From: William F. <wsf...@us...> - 2004-10-25 20:45:03
|
Update of /cvsroot/swig/SWIG/Lib/csharp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23659/Lib/csharp Modified Files: std_string.i Log Message: Typemaps for std::string member variables Index: std_string.i =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/csharp/std_string.i,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** std_string.i 20 Oct 2004 21:19:09 -0000 1.5 --- std_string.i 25 Oct 2004 20:44:53 -0000 1.6 *************** *** 37,40 **** --- 37,49 ---- } + %typemap(csvarin) string %{ + set { + $imcall; + } %} + %typemap(csvarout) string %{ + get { + return $imcall; + } %} + %typemap(typecheck) string = char *; *************** *** 59,62 **** --- 68,80 ---- } + %typemap(csvarin) const string & %{ + set { + $imcall; + } %} + %typemap(csvarout) const string & %{ + get { + return $imcall; + } %} + %typemap(typecheck) const string & = char *; |