mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
![Ryan Macnak](/assets/img/avatar_default.png)
Bug: https://github.com/dart-lang/sdk/issues/39427 Change-Id: I74e0eee623d88005fb2893d03e284a87daa09260 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/146696 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
21 lines
697 B
C
21 lines
697 B
C
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_PLATFORM_UNDEFINED_BEHAVIOR_SANITIZER_H_
|
|
#define RUNTIME_PLATFORM_UNDEFINED_BEHAVIOR_SANITIZER_H_
|
|
|
|
#if defined(__has_feature)
|
|
#if __has_feature(undefined_behavior_sanitizer)
|
|
#define USING_UNDEFINED_BEHAVIOR_SANITIZER
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(USING_UNDEFINED_BEHAVIOR_SANITIZER)
|
|
#define NO_SANITIZE_UNDEFINED(check) __attribute__((no_sanitize(check)))
|
|
#else
|
|
#define NO_SANITIZE_UNDEFINED(check)
|
|
#endif
|
|
|
|
#endif // RUNTIME_PLATFORM_UNDEFINED_BEHAVIOR_SANITIZER_H_
|