mirror of https://github.com/mono/CppSharp.git
				
				
			
		c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							63 lines
						
					
					
						
							793 B
						
					
					
				
			
		
		
	
	
							63 lines
						
					
					
						
							793 B
						
					
					
				#include "VTables.h" | 
						|
#include <typeinfo> | 
						|
 | 
						|
int Foo::vfoo() | 
						|
{ | 
						|
    return 5; | 
						|
} | 
						|
 | 
						|
int Foo::vbar() | 
						|
{ | 
						|
    return vfoo(); | 
						|
} | 
						|
 | 
						|
int Foo::append() | 
						|
{ | 
						|
    return 1; | 
						|
} | 
						|
 | 
						|
int Foo::append(int a) | 
						|
{ | 
						|
    return ++a; | 
						|
} | 
						|
 | 
						|
int Foo::callVirtualWithParameter(int a) | 
						|
{ | 
						|
    return append(a); | 
						|
} | 
						|
 | 
						|
int FooCallFoo(Foo* foo) | 
						|
{ | 
						|
    return foo->vfoo() + 2; | 
						|
} | 
						|
 | 
						|
int BaseClassVirtual::virtualCallRetInt(BaseClassVirtual* base) | 
						|
{ | 
						|
    return base->retInt(); | 
						|
} | 
						|
 | 
						|
int BaseClassVirtual::retInt() | 
						|
{ | 
						|
    return 5; | 
						|
} | 
						|
 | 
						|
BaseClassVirtual BaseClassVirtual::getBase() | 
						|
{ | 
						|
    return DerivedClassVirtual(); | 
						|
} | 
						|
 | 
						|
BaseClassVirtual* BaseClassVirtual::getBasePtr() | 
						|
{ | 
						|
    return new DerivedClassVirtual(); | 
						|
} | 
						|
 | 
						|
const char* BaseClassVirtual::getTypeName() | 
						|
{ | 
						|
    return typeid(BaseClassVirtual).name(); | 
						|
} | 
						|
 | 
						|
int DerivedClassVirtual::retInt() | 
						|
{ | 
						|
    return 10; | 
						|
} | 
						|
 | 
						|
 |