Skip to content
Snippets Groups Projects
Commit 21a67015 authored by Mateusz Mikuła's avatar Mateusz Mikuła Committed by Mateusz Mikuła
Browse files

Rename __assert to __assert_fail

This makes relibc more compatible with other libc implementations
parent 15aa52a8
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
# define assert(cond) (void) 0
#else
# define assert(cond) \
((void)((cond) || (__assert(__func__, __FILE__, __LINE__, #cond), 0)))
((void)((cond) || (__assert_fail(__func__, __FILE__, __LINE__, #cond), 0)))
#endif
#endif
......@@ -6,7 +6,7 @@ use header::{stdio, stdlib};
use platform::types::*;
#[no_mangle]
pub unsafe extern "C" fn __assert(
pub unsafe extern "C" fn __assert_fail(
func: *const c_char,
file: *const c_char,
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