0 /*
1 * ISC License
2 * Copyright (c) 2023 RMF <rawmonk@firemail.cc>
3 */
4 #include "memcheck.h"
5 #define ASSERT(X) switch(0){case 0:case (X):;}
6 #define STRLCPY(X, Y) strlcpy((X), (Y), sizeof(X))
7 #define UTF8CPY(X, Y) utf8_cpy((X), (Y), sizeof(X))
8 #define STRCMP(X, Y) strncmp((X), (Y), sizeof(X))
9 #define V(X) (X), sizeof(X)
10 #define P(X) (&X), sizeof(X)
11 #define AZ(X) ((X) ? (X) : 1)
12 #define MAX_URL 1024
13 #define MAX_HOST 1024
14 #define LENGTH(X) (sizeof(X) / sizeof(*X))
15 #ifndef PATH_MAX
16 #define PATH_MAX 1024
17 #endif
18 #ifndef NO_SANDBOX
19 #ifdef __linux__
20 #define STATIC_ALLOC
21 #endif
22 #endif
23