This is a cherry pick of recent changes to OEMCrypto and ODK. Most of these are part of the document migration to doxygen. See http://go/wvgerrit/106005 and its parents for code reviews. Bug: 144715340 Bug: 148232693 Bug: 167580674 Change-Id: I658f99c8117b974faed97322d61fac0f382283af
25 lines
563 B
C
25 lines
563 B
C
// Copyright 2019 Google LLC. All rights reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine Master
|
|
// License Agreement.
|
|
|
|
#ifndef WIDEVINE_ODK_SRC_ODK_ASSERT_H_
|
|
#define WIDEVINE_ODK_SRC_ODK_ASSERT_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if (__STDC_VERSION__ >= 201112L)
|
|
#include <assert.h>
|
|
#define odk_static_assert static_assert
|
|
#else
|
|
#define odk_static_assert(msg, e) \
|
|
enum { odk_static_assert = 1 / (!!((msg) && (e))) };
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // WIDEVINE_ODK_SRC_ODK_ASSERT_H_
|