mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C++: It turns out __assert_fail is special (see DefaultOptions.qll) so we don't need a body here. And the body was wrong.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define NULL ((void*)0)
|
||||
|
||||
#define assert(x) if (!(x)) __assert_fail(#x,__FILE__,__LINE__)
|
||||
void __assert_fail(const char *assertion, const char *file, int line) { }
|
||||
void __assert_fail(const char *assertion, const char *file, int line);
|
||||
|
||||
void aFakeFailed_1(int file, int line)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user