Tweaks to bitset.h, established a C test framework.

This commit is contained in:
Matthew Bloch
2012-05-20 14:38:46 +01:00
parent 8a38cf48eb
commit c94b6f365c
4 changed files with 162 additions and 5 deletions

1
util.h
View File

@@ -24,6 +24,7 @@ void* xmalloc(size_t size);
error(0, client->socket, msg, ##__VA_ARGS__)
#define CLIENT_ERROR_ON_FAILURE(test, msg, ...) \
if (test < 0) { error(1, client->socket, msg, ##__VA_ARGS__); }
#define SERVER_ERROR(msg, ...) \
error(0, 0, msg, ##__VA_ARGS__)
#define SERVER_ERROR_ON_FAILURE(test, msg, ...) \