20 lines
533 B
C
20 lines
533 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 OEMCRYPTO_TA_ASSERT_INTERFACE_H_
|
|
#define OEMCRYPTO_TA_ASSERT_INTERFACE_H_
|
|
|
|
#include "logging_interface.h"
|
|
|
|
/* Abort the program execution. */
|
|
void Abort(void);
|
|
|
|
#define ASSERT(expression, ...) \
|
|
if (!(expression)) { \
|
|
LOGE(__VA_ARGS__); \
|
|
Abort(); \
|
|
}
|
|
|
|
#endif /* OEMCRYPTO_TA_ASSERT_INTERFACE_H_ */
|