Skip to content
Snippets Groups Projects
Commit 8db2f517 authored by jD91mZM2's avatar jD91mZM2
Browse files

Merge branch 'assert_fail' into 'master'

Rename __assert to __assert_fail

See merge request !212
parents d9ed51b9 21a67015
No related branches found
No related tags found
1 merge request!212Rename __assert to __assert_fail
Pipeline #4556 passed with warnings
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# define assert(cond) (void) 0 # define assert(cond) (void) 0
#else #else
# define assert(cond) \ # define assert(cond) \
((void)((cond) || (__assert(__func__, __FILE__, __LINE__, #cond), 0))) ((void)((cond) || (__assert_fail(__func__, __FILE__, __LINE__, #cond), 0)))
#endif #endif
#endif #endif
...@@ -6,7 +6,7 @@ use header::{stdio, stdlib}; ...@@ -6,7 +6,7 @@ use header::{stdio, stdlib};
use platform::types::*; use platform::types::*;
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn __assert( pub unsafe extern "C" fn __assert_fail(
func: *const c_char, func: *const c_char,
file: *const c_char, file: *const c_char,
line: c_int, line: c_int,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment