(git:62e77a6)
Loading...
Searching...
No Matches
cp_assert.h File Reference
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define cp_assert(condition)

Functions

static void cp_assert_fail (const char *condition, const char *file, int line, const char *function)

Macro Definition Documentation

◆ cp_assert

#define cp_assert ( condition)
Value:
do { \
if (!(condition)) { \
cp_assert_fail(#condition, __FILE__, __LINE__, __func__); \
} \
} while (0)

Definition at line 22 of file cp_assert.h.

Function Documentation

◆ cp_assert_fail()

void cp_assert_fail ( const char * condition,
const char * file,
int line,
const char * function )
inlinestatic

Definition at line 14 of file cp_assert.h.