Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
assert.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for assert.c:

Go to the source code of this file.

Functions

 __attribute__ ((noreturn, weak))
 

Function Documentation

◆ __attribute__()

__attribute__ ( (noreturn, weak)  )

Definition at line 5 of file assert.c.

7 {
8  printf("Assertion failed: %s (%s: %s: %u)\n", expr, file, function, line);
9  abort();
10 }
void abort(void) __attribute__((noreturn))
const char * file
Definition: assert.h:18
const char unsigned int line
Definition: assert.h:18

References abort(), file, and line.