introduce T_TRACER to globally enable/disable the T
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -g -pthread
|
CFLAGS=-Wall -g -pthread -DT_TRACER
|
||||||
|
|
||||||
#comment those two lines to NOT use shared memory
|
#comment those two lines to NOT use shared memory
|
||||||
CFLAGS += -DT_USE_SHARED_MEMORY
|
CFLAGS += -DT_USE_SHARED_MEMORY
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#ifndef _T_T_T_
|
#ifndef _T_T_T_
|
||||||
#define _T_T_T_
|
#define _T_T_T_
|
||||||
|
|
||||||
|
#if T_TRACER
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "T_defs.h"
|
#include "T_defs.h"
|
||||||
@@ -517,4 +519,11 @@ extern int *T_active;
|
|||||||
|
|
||||||
void T_connect_to_tracer(char *addr, int port);
|
void T_connect_to_tracer(char *addr, int port);
|
||||||
|
|
||||||
|
#else /* T_TRACER */
|
||||||
|
|
||||||
|
/* if T_TRACER is not defined or is 0, the T is deactivated */
|
||||||
|
#define T(...) /**/
|
||||||
|
|
||||||
|
#endif /* T_TRACER */
|
||||||
|
|
||||||
#endif /* _T_T_T_ */
|
#endif /* _T_T_T_ */
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -g -pthread
|
CFLAGS=-Wall -g -pthread -DT_TRACER
|
||||||
|
|
||||||
CFLAGS += -O3 -ffast-math -fomit-frame-pointer
|
#CFLAGS += -O3 -ffast-math -fomit-frame-pointer
|
||||||
|
|
||||||
LIBS=-lX11 -lm
|
LIBS=-lX11 -lm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user