Correct spelling of compatibility.
This commit is contained in:
parent
29c98fa7f8
commit
5f53503b7d
4 changed files with 10 additions and 10 deletions
48
Examples/test-suite/csharp_swig2_compatibility.i
Normal file
48
Examples/test-suite/csharp_swig2_compatibility.i
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
%module csharp_swig2_compatibility
|
||||
|
||||
%typemap(cscode) Foo %{
|
||||
|
||||
// Without the using directives generated by the
|
||||
// SWIG 2 compatibility mode, this code would fail
|
||||
// to build.
|
||||
public void FooBar(string input)
|
||||
{
|
||||
Console.WriteLine(input);
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
%pragma(csharp) imclasscode=%{
|
||||
|
||||
// Without the using directives generated by the
|
||||
// SWIG 2 compatibility mode, this code would fail
|
||||
// to build.
|
||||
public void IntermediateClassMethod(string input)
|
||||
{
|
||||
Console.WriteLine(input);
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
%pragma(csharp) modulecode=%{
|
||||
|
||||
// Without the using directives generated by the
|
||||
// SWIG 2 compatibility mode, this code would fail
|
||||
// to build.
|
||||
public void ModuleClassMethod(string input)
|
||||
{
|
||||
Console.WriteLine(input);
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
class Foo {
|
||||
public:
|
||||
Foo() {}
|
||||
|
||||
void Bar() {}
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue