blob: 303055a60a51000183291ba843ebb0e75db24619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef PIT_UTILS_H
#define PIT_UTILS_H
#include <stdckdint.h>
#define PIT_STRSTR(x) #x
#define PIT_STR(x) PIT_STRSTR(x)
void pit_panic(const char *format, ...);
void pit_debug(const char *format, ...);
#define pit_mul(result, a, b) if (ckd_mul(result, a, b)) pit_panic("integer overflow during multiplication%s","");
#endif
|