Path: blob/main/contrib/llvm-project/clang/lib/Headers/__stddef_nullptr_t.h
35233 views
/*===---- __stddef_nullptr_t.h - Definition of nullptr_t -------------------===1*2* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3* See https://llvm.org/LICENSE.txt for license information.4* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5*6*===-----------------------------------------------------------------------===7*/89/*10* When -fbuiltin-headers-in-system-modules is set this is a non-modular header11* and needs to behave as if it was textual.12*/13#if !defined(_NULLPTR_T) || \14(__has_feature(modules) && !__building_module(_Builtin_stddef))15#define _NULLPTR_T1617#ifdef __cplusplus18#if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED)19namespace std {20typedef decltype(nullptr) nullptr_t;21}22using ::std::nullptr_t;23#endif24#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L25typedef typeof(nullptr) nullptr_t;26#endif2728#endif293031