Make __assert_fail static inline to avoid duplicate symbol rust-lld error
This commit is contained in:
parent
eacb95c85d
commit
d046c97c1f
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#ifdef NDEBUG
|
||||
#define assert(e) ((void)0)
|
||||
#else
|
||||
__attribute__((noreturn)) void __assert_fail(const char *assertion, const char *file, unsigned line, const char *function) {
|
||||
__attribute__((noreturn)) static inline void __assert_fail(const char *assertion, const char *file, unsigned line, const char *function) {
|
||||
__builtin_trap();
|
||||
}
|
||||
#define assert(expression) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue