mirror of
https://github.com/hmaxnl/netex.git
synced 2025-01-18 07:24:21 +01:00
Fixed some macros
This commit is contained in:
parent
3ef62d8c6d
commit
e48ae98860
|
@ -17,8 +17,8 @@ struct exp_data* get_from_list(int index);
|
||||||
void clear_list();
|
void clear_list();
|
||||||
|
|
||||||
// Tracing
|
// Tracing
|
||||||
#define PRINT_LINE(msg, args...) fprintf(stdout, #msg "\n", ##args)
|
#define PRINT_LINE(msg, args...) fprintf(stdout, msg "\n", ##args)
|
||||||
#define TRACE_WARN(msg, args...) fprintf(stdout, "[Warning]: " #msg "\n", ##args)
|
#define TRACE_WARN(msg, args...) fprintf(stdout, "[Warning]: " msg "\n", ##args)
|
||||||
#define TRACE_ERROR(msg, args...) fprintf(stderr, "[ERROR]: " #msg "\n", ##args)
|
#define TRACE_ERROR(msg, args...) fprintf(stderr, "[ERROR]: " msg "\n", ##args)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,9 +15,9 @@ int main(int argc, char *argv[])
|
||||||
signal(SIGINT, app_cleanup);
|
signal(SIGINT, app_cleanup);
|
||||||
list_add("Socket server", "server", start_server);
|
list_add("Socket server", "server", start_server);
|
||||||
list_add("Socket client", "client", clientstart);
|
list_add("Socket client", "client", clientstart);
|
||||||
|
|
||||||
printf(" _____ \n / ____| \n | | _____ ___ __ \n | | / _ \\ \\/ / '_ \\ \n | |___| __/> <| |_) |\n \\_____\\___/_/\\_\\ .__/ \n | | \n |_| \n");
|
printf(" _____ \n / ____| \n | | _____ ___ __ \n | | / _ \\ \\/ / '_ \\ \n | |___| __/> <| |_) |\n \\_____\\___/_/\\_\\ .__/ \n | | \n |_| \n");
|
||||||
|
|
||||||
// Check for argruments and if we can use them.
|
// Check for argruments and if we can use them.
|
||||||
int result = checkarg(argc, argv);
|
int result = checkarg(argc, argv);
|
||||||
if (result == 0)
|
if (result == 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user