Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎Unity/Assets/NativeScript/Editor/GenerateBindings.cs

Lines changed: 3 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /