Skip to content

Commit 5440a2b

Browse files
Merge pull request #72 from philipcass/patch-4
Set abstract base method declarations as virtual
2 parents 8d1d7c8 + 2eb8824 commit 5440a2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Unity/Assets/NativeScript/Editor/GenerateBindings.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections;
33
using System.Collections.Generic;
44
using System.IO;
@@ -4163,7 +4163,8 @@ static void AppendMethod(
41634163
AppendCppMethodDeclaration(
41644164
cppMethodName,
41654165
enclosingTypeIsStatic,
4166-
false,
4166+
// Mark as virtual if method/class is not static or generic
4167+
cppMethodIsStatic || enclosingTypeIsStatic || methodTypeParams != null? false : true,
41674168
cppMethodIsStatic,
41684169
cppReturnType,
41694170
methodTypeParams,

0 commit comments

Comments
 (0)