mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
Make __assert_fail static inline to avoid duplicate symbol rust-lld error
This commit is contained in:
parent
148b4ca1b2
commit
b21327e3ad
|
|
@ -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…
Reference in a new issue