T: increase max number of args in an event and make the define more private

T_MAX_ARGS was 16 and some people start to use the T machinery with
more than 16 values. So be it. Let tracers be friendly and accept 32.
(More commits to follow for full support.)

Also why is T_MAX_ARGS in T_defs.h when it's only used by event.h?
Hum?
This commit is contained in:
Cedric Roux
2024-09-06 16:49:12 +02:00
parent 1e645c514f
commit 105eaa607f
2 changed files with 3 additions and 3 deletions
-3
View File
@@ -36,9 +36,6 @@
/* comment (and recompile everything) to not send time in events */
#define T_SEND_TIME
/* maximum number of arguments for the T macro */
#define T_MAX_ARGS 16
/* maximum size of a message - increase if needed */
#define T_BUFFER_MAX (1024*64*4)
+3
View File
@@ -7,6 +7,9 @@
#include <time.h>
#endif
/* maximum number of arguments for the T macro */
#define T_MAX_ARGS 32
enum event_arg_type {
EVENT_INT,
EVENT_ULONG,