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
|
|
@ -15,13 +15,16 @@ public class runme
|
|||
initialLetters.Append(myChar);
|
||||
myChar = csharp_typemaps.partyon("off");
|
||||
initialLetters.Append(myChar);
|
||||
myChar = csharp_typemaps.STRINGCONSTANT;
|
||||
initialLetters.Append(myChar);
|
||||
if (initialLetters.ToString() != "bhox")
|
||||
if (initialLetters.ToString() != "bho")
|
||||
throw new Exception("initial letters failed");
|
||||
if (csharp_typemaps.go != 'z')
|
||||
throw new Exception("go variable failed");
|
||||
|
||||
// $csinput expansion
|
||||
csharp_typemaps.myInt = 1;
|
||||
try {
|
||||
csharp_typemaps.myInt = -1;
|
||||
throw new Exception("oops");
|
||||
} catch (ApplicationException) {
|
||||
}
|
||||
|
||||
// Eager garbage collector test
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue