Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
[Bindings] fix #54. I generated new sources via Sharpie and tested al…
Browse files Browse the repository at this point in the history
…l samples - there is no any regression. And 32_Urho2DConstraints now doesn't throw AVE.
  • Loading branch information
EgorBo committed Aug 11, 2015
1 parent feded28 commit 85b3fc0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion SharpieBinder/CxxBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,17 @@ public override void VisitCXXMethodDecl(CXXMethodDecl decl, VisitKind visitKind)
case "const class Urho3D::Plane &":
case "const class Urho3D::BoundingBox &":
case "const class Urho3D::Color &":
creturnType = "Interop" + creturnType.Substring (18, creturnType.Length - 19);

case "Urho3D::Vector3":
case "Urho3D::Vector2":
case "Urho3D::Vector4":
case "Urho3D::IntVector2":
case "Urho3D::Quaternion":
case "Urho3D::Plane":
case "Urho3D::BoundingBox":
case "Urho3D::Color":
var nsIndex = creturnType.IndexOf ("Urho3D::") + "Urho3D".Length;
creturnType = "Interop" + creturnType.Remove (0, nsIndex).Trim ('&', ' ') + " ";
marshalReturn = "*((" + creturnType + " *) &({0}))";
break;
}
Expand Down

0 comments on commit 85b3fc0

Please sign in to comment.