Back out valueparm attribute in the csvarin typemap. Add example usage of temporary variables in the csvarin typemap into docs. Modify CDate C# example. Add in special variable expansion in the csvarin typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
532518c38a
commit
8a17d9dcfa
4 changed files with 197 additions and 29 deletions
|
|
@ -2652,6 +2652,7 @@ public:
|
|||
SwigType *pt = Getattr(p, "type");
|
||||
if ((tm = Getattr(p, "tmap:csvarin"))) {
|
||||
substituteClassname(pt, tm);
|
||||
Replaceall(tm, "$csinput", "value");
|
||||
Replaceall(tm, "$imcall", imcall);
|
||||
excodeSubstitute(n, tm, "csvarin", p);
|
||||
Printf(module_class_code, "%s", tm);
|
||||
|
|
@ -2869,8 +2870,7 @@ public:
|
|||
String *pn = Getattr(p, "name");
|
||||
if (setter) {
|
||||
// Note that in C# properties, the input variable name is always called 'value'
|
||||
String *valueparm = Getattr(p, "tmap:csvarin:valueparm");
|
||||
arg = valueparm ? Copy(valueparm) : NewString("value");
|
||||
arg = NewString("value");
|
||||
} else {
|
||||
// Use C parameter name unless it is a duplicate or an empty parameter name
|
||||
int count = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue