Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into rtti
Browse files Browse the repository at this point in the history
  • Loading branch information
anpilog committed Oct 4, 2021
2 parents 745f92b + 728cff8 commit d36b490
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Source/buildbindingccpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,11 @@ func buildCppHeader(component ComponentDefinition, w LanguageWriter, NameSpace s
w.Writeln(" {")
w.Writeln(" %s_uint32 nMajor, nMinor, nMicro;", NameSpace)
w.Writeln(" %s(nMajor, nMinor, nMicro);", global.VersionMethod)
w.Writeln(" if ( (nMajor != %s_VERSION_MAJOR) || (nMinor < %s_VERSION_MINOR) ) {", strings.ToUpper(NameSpace), strings.ToUpper(NameSpace))
if minorVersion(component.Version) > 0 {
w.Writeln(" if ( (nMajor != %s_VERSION_MAJOR) || (nMinor < %s_VERSION_MINOR) ) {", strings.ToUpper(NameSpace), strings.ToUpper(NameSpace))
} else {
w.Writeln(" if (nMajor != %s_VERSION_MAJOR) {", strings.ToUpper(NameSpace))
}
w.Writeln(" return %s_ERROR_INCOMPATIBLEBINARYVERSION;", strings.ToUpper(NameSpace))
w.Writeln(" }")
w.Writeln(" return %s_SUCCESS;", strings.ToUpper(NameSpace))
Expand Down
2 changes: 1 addition & 1 deletion Source/buildbindingcsharp.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ func buildBindingCSharpImplementation(component ComponentDefinition, w LanguageW
}
}

w.Writeln(" class C%s %s", class.ClassName, CSharpParentClassName)
w.Writeln(" public class C%s %s", class.ClassName, CSharpParentClassName)
w.Writeln(" {")

if component.isBaseClass(class) {
Expand Down

0 comments on commit d36b490

Please sign in to comment.