diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-12-01 00:31:01 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-12-20 15:31:03 +0100 |
| commit | d68d0f39ab7675745e7d177f6774736f7ec58783 (patch) | |
| tree | 9f0cf6732517619e370186f288be172eead73fb0 /util.h | |
| parent | 02141177f8055a2d0edace481d631adbcb4b4c47 (diff) | |
| download | tmus-d68d0f39ab7675745e7d177f6774736f7ec58783.tar.gz tmus-d68d0f39ab7675745e7d177f6774736f7ec58783.zip | |
Replace readline with own implementation for integration
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#pragma once + +#include <stdio.h> + +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#define MIN(a, b) ((a) > (b) ? (b) : (a)) +#define ARRLEN(x) (sizeof(x)/sizeof((x)[0])) + +#define ASSERT(x) assert((x), __FILE__, __LINE__, #x) + +int strnwidth(const char *s, int n); +void assert(int cond, const char *file, int line, const char *condstr); |
