]>
git.saurik.com Git - apple/xnu.git/blob - tests/intrusive_shared_ptr_src/abi_helper.h
1 #ifndef TESTS_INTRUSIVE_SHARED_PTR_ABI_HELPER_H
2 #define TESTS_INTRUSIVE_SHARED_PTR_ABI_HELPER_H
4 #include <libkern/c++/intrusive_shared_ptr.h>
5 #include <darwintest.h>
6 #include "test_policy.h"
10 #if defined USE_SHARED_PTR
12 using SharedPtr
= libkern::intrusive_shared_ptr
<T
, test_policy
>;
15 using SharedPtr
= T
*;
18 extern SharedPtr
<T
> return_shared_as_raw(T
*);
19 extern SharedPtr
<T
> return_raw_as_shared(T
*);
21 #endif // !TESTS_INTRUSIVE_SHARED_PTR_ABI_HELPER_H