MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / assertion

Function assertion

CloverPackage/utils/clover-genconfig/utils.c:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "utils.h"
7
8void assertion(int condition, char * message)
9{
10 if (condition == 0)
11 {
12 fprintf(stderr, "error: %s.\n", message);
13 exit(1);
14 }
15}
16
17unsigned long UTF16ReadChar(const unsigned short *str, int len, int *posn)
18{

Callers

nothing calls this directly

Calls 2

fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected