Skip to content
23 changes: 23 additions & 0 deletions lmdk/include/rtos/panic.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2026 Intel Corporation. All rights reserved.
*
* Author: Piotr Hoppe <piotr.hoppe@intel.com>
*/

#ifndef __LMDK_RTOS_PANIC_H__
#define __LMDK_RTOS_PANIC_H__

#ifdef __cplusplus
extern "C" {
#endif

/* runtime assertion */
#define assert(x) do {if (!(x)) while (1);} while (0)

Comment on lines +15 to +17
#ifdef __cplusplus
}
#endif

#endif /* __LMDK_RTOS_PANIC_H__ */

Loading
Loading