Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/TedToolkit.CppInteropGen.Cpp/FunctionPointer2_C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CSHARP_WRAPPER(FunctionPointer2_Create_0(FunctionPointer2*& handle), {
handle = new FunctionPointer2();
})

CSHARP_WRAPPER(FunctionPointer2_Test(const FunctionPointer2& handle, const int value, const AbsorbedDose what, const FunctionPointer2 other, int(*method)(int a, int b)), {
CSHARP_WRAPPER(FunctionPointer2_Test(const FunctionPointer2& handle, const int value, AbsorbedDose & what, const FunctionPointer2 other, int(*method)(int a, int b)), {
method(1, 2);
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public override ArgumentSyntax GenerateArgument()
if (_rawTypeName != _cppTypeName)
{
return Argument(PrefixUnaryExpression(SyntaxKind.PointerIndirectionExpression,
CastExpression(PointerType(IdentifierName(_cppTypeName)),
CastExpression(PointerType(InnerCppType),
PrefixUnaryExpression(SyntaxKind.AddressOfExpression, IdentifierName(name)))));
}

Expand Down
Loading