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.
33 lines
669 B
33 lines
669 B
// |
|
// VirtualMethodTestClass.cpp: A test C++ class used to exercise vtable behavior in CppInterop |
|
// |
|
// Author: |
|
// Alexander Corrado (alexander.corrado@gmail.com) |
|
// |
|
// Copyright (C) 2010 Alexander Corrado |
|
// |
|
|
|
#include "NUnit.h" |
|
|
|
class EXPORT VirtualMethodTestClass { |
|
|
|
virtual void V0 (int a1, int a2, int a3) |
|
{ |
|
NUnit::Assert->AreEqual (1, a1, "V0 #A1"); |
|
NUnit::Assert->AreEqual (2, a2, "V0 #A2"); |
|
NUnit::Assert->AreEqual (3, a3, "V0 #A3"); |
|
} |
|
|
|
}; |
|
|
|
extern "C" { |
|
VirtualMethodTestClass* CreateVirtualMethodTestClass () |
|
{ |
|
return new VirtualMethodTestClass (); |
|
} |
|
|
|
void DestroyVirtualMethodTestClass (VirtualMethodTestClass* vmtc) |
|
{ |
|
delete vmtc; |
|
} |
|
}
|
|
|