mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-30 01:48:54 +00:00
Add a compile time knob to disable timing checks (on by default now).
This commit is contained in:
parent
59ff806081
commit
8d7b0d259f
@ -75,6 +75,7 @@ CFLAGS= @CPPFLAGS@ @CFLAGS@ @PORTAUDIO_CFLAGS@ @SRC_CFLAGS@ @SPANDSP_CFLAGS@ @PT
|
||||
CFLAGS+=-Wall -Wno-unused-value
|
||||
#CFLAGS+=-Wunreachable-code
|
||||
#CFLAGS+=-O0
|
||||
CFLAGS+=-DDO_TIMING_CHECKS
|
||||
|
||||
DEFS= @DEFS@
|
||||
|
||||
|
4
serval.h
4
serval.h
@ -115,9 +115,13 @@ struct in_addr {
|
||||
#define bzero(addr,len) memset((addr), 0, (len))
|
||||
|
||||
/* @PGS/20120615 */
|
||||
#ifdef DO_TIMING_CHECKS
|
||||
#define TIMING_CHECK() _TIMING_CHECK(__FILE__,__FUNCTION__,__LINE__)
|
||||
void _TIMING_CHECK(const char *file,const char *func,int line);
|
||||
void TIMING_PAUSE();
|
||||
#else
|
||||
#define TIMING_CHECK()
|
||||
#endif
|
||||
|
||||
/* UDP Port numbers for various Serval services.
|
||||
The overlay mesh works over DNA */
|
||||
|
Loading…
Reference in New Issue
Block a user