xref: /xnu-11215.41.3/tests/sched/sched_test_harness/shadow_headers/priority_queue.cpp (revision 33de042d024d46de5ff4e89f2471de6608e37fa4)
1 // Copyright (c) 2023 Apple Inc.  All rights reserved.
2 
3 #include <stddef.h>
4 #include <stdint.h>
5 #include <assert.h>
6 
7 #define __container_of(ptr, type, field) __extension__({ \
8 	        const __typeof__(((type *)nullptr)->field) *__ptr = (ptr); \
9 	        (type *)((uintptr_t)__ptr - offsetof(type, field)); \
10 	})
11 #define OS_NOINLINE __attribute__((__noinline__))
12 
13 #include "../../../../osfmk/kern/macro_help.h"
14 #include "../../../../osfmk/kern/priority_queue.h"
15 #include "../../../../libkern/c++/priority_queue.cpp"
16