Skip to content

Commit 85491cf

Browse files
j-probertmartinweismann
authored andcommitted
Add predeclarations to support nested calls
1 parent 1d5c41a commit 85491cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/buildbindingclientimplccpp.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,14 @@ static typename tCLASS::tBINDING_PTR CreateWrappedInstance(tARGS&&... args)
242242
);
243243
}
244244
245+
// Predeclare these functions so we can call them from each other.
246+
template <typename tCLASS>
247+
static tCLASS* UnsafeGetWrappedInstance(typename tCLASS::tBINDING_PTR pBindingPtr);
248+
template <typename tCLASS>
249+
static tCLASS* UnsafeGetWrappedInstance(AbstractCAMExtendedHandle extendedHandle);
250+
template <typename tCLASS>
251+
static tCLASS* UnsafeGetWrappedInstance(AbstractCAMHandle handle);
252+
245253
// Given a pointer to a binding object, cast the wrapped handle to a client
246254
// implementation instance. The caller is responsible for ensuring that the
247255
// binding object really does wrap a client implementation.

0 commit comments

Comments
 (0)