mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 23:15:16 +00:00
![Wenyong Huang](/assets/img/avatar_default.png)
add more checks to enhance security clear "wasi proc exit" exception before return to caller in wasm/aot call functions fix memory profiling issue change movdqa to movdqu in simd invokeNative asm codes to fix issue of unaligned address access move setjmp/longjmp from libc-builtin to libc-emcc fix zephyr platform compilation issue in latest zephyr version
26 lines
559 B
C
26 lines
559 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*/
|
|
|
|
#include "bh_assert.h"
|
|
|
|
void bh_assert_internal(int v, const char *file_name, int line_number,
|
|
const char *expr_string)
|
|
{
|
|
if (v)
|
|
return;
|
|
|
|
if (!file_name)
|
|
file_name = "NULL FILENAME";
|
|
|
|
if (!expr_string)
|
|
expr_string = "NULL EXPR_STRING";
|
|
|
|
os_printf("\nASSERTION FAILED: %s, at file %s, line %d\n",
|
|
expr_string, file_name, line_number);
|
|
|
|
abort();
|
|
}
|
|
|