Files
odkitee/oemcrypto_ta/tee_interfaces/assert_interface.h
2020-07-24 12:03:58 -07:00

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_ */