Debian Codegraph @

external/llvm/releases/22.0.0/clang/lib/Headers/__stddef_offsetof.h

raw
1
2 /*===---- __stddef_offsetof.h - Definition of offsetof ---------------------===
3 *
4 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 * See https://llvm.org/LICENSE.txt for license information.
6 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 *
8 *===-----------------------------------------------------------------------===
9 */
10
11 /*
12 * When -fbuiltin-headers-in-system-modules is set this is a non-modular header
13 * and needs to behave as if it was textual.
14 */
15 #if !defined(offsetof) || \
16 (__has_feature(modules) && !__building_module(_Builtin_stddef))
17 #define offsetof(t, d) __builtin_offsetof(t, d)
18 #endif