xref: /xnu-11215.81.4/tests/sched/sched_test_harness/shadow_headers/priority_queue.cpp (revision d4514f0bc1d3f944c22d92e68b646ac3fb40d452)
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