Skip to content

Commit 022709a

Browse files
committed
Minor fixes to test header files.
1 parent 084453e commit 022709a

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

tests/Builtins.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include <cstddef>
24
#include <cstdint>
35

tests/Classes.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
#pragma once
2+
13
#include "Classes2.h"
24

35
class Class
46
{
57
public:
68
void ReturnsVoid() {}
79
int ReturnsInt() { return 0; }
8-
Class* PassAndReturnsClassPtr(Class* obj) { return obj; }
10+
// Class* PassAndReturnsClassPtr(Class* obj) { return obj; }
911
};
1012

1113
class ClassWithField
@@ -36,5 +38,5 @@ class ClassWithExternalInheritance : public ClassFromAnotherUnit
3638

3739
};
3840

39-
void FunctionPassClassByRef(Class* klass) { }
40-
Class* FunctionReturnsClassByRef() { return new Class(); }
41+
//void FunctionPassClassByRef(Class* klass) { }
42+
//Class* FunctionReturnsClassByRef() { return new Class(); }

tests/Classes2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
class ClassFromAnotherUnit
24
{
35

tests/Delegates.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
#pragma once
2+
13
#include <FastDelegates.h>
24

35
using namespace fastdelegate;
46

57
class ClassWithDelegate
68
{
79
public:
10+
ClassWithDelegate() {}
811
FastDelegate<int(int)> OnEvent0;
912
void FireEvent0(int value) { if (OnEvent0) OnEvent0(value); }
1013
};

tests/Enums.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
enum class Enum0
24
{
35
Item0,

tests/Overloads.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
void Overload0() {}
24

35
int Overload1() { return 1; }

0 commit comments

Comments
 (0)