first commit
This commit is contained in:
20
CS4210/Project 2/common/defs.h
Normal file
20
CS4210/Project 2/common/defs.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _DEFS_H_
|
||||
#define _DEFS_H_
|
||||
|
||||
#define _VERBOSE_ 0 // Print out generally useless stuff
|
||||
#define _LOG_ 0 // Print out loging output, turn off for speed
|
||||
#define VPRINTF(x) if(_VERBOSE_) printf x;
|
||||
#define BZERO(x,z) memset(x,0,z)
|
||||
|
||||
#define _THREAD_POOL_ //Whether to spwan new threads for each connection
|
||||
//or use pooling
|
||||
|
||||
#define LOCAL_GET "LOCAL_GET"
|
||||
|
||||
#define DieWithError(msg) { \
|
||||
fprintf(stderr, "%s: PwnT! Error on line %d.\n", (msg), __LINE__); \
|
||||
perror(msg); \
|
||||
exit(EXIT_FAILURE);}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user