// Internal macros used across Wasm abi. Must be last included header.
//
// Also, include the "third_party/upb/wasm_abi/undef.inc" at the end of the
// .h file.

// TODO(b/408506256): Remove this once the bug is fixed.
#if _WIN32 || __has_feature(address_sanitizer) ||                         \
    __has_feature(thread_sanitizer) || __has_feature(memory_sanitizer) || \
    __has_feature(dataflow_sanitizer) || __has_feature(safe_stack) ||     \
    __has_feature(undefined_behavior_sanitizer) || __GNUC__
#define UPB_WASM_PRESERVE_ALL
#else
#define UPB_WASM_PRESERVE_ALL __attribute__((preserve_all))
#endif
