From 6023cd4da24262882be2566c84aba5681b404fa0 Mon Sep 17 00:00:00 2001 From: gardners Date: Wed, 20 Jun 2012 12:57:12 +0930 Subject: [PATCH] moved timing check definitions to serval.h --- overlay.c | 3 +-- serval.h | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/overlay.c b/overlay.c index 65473477..139d7d19 100644 --- a/overlay.c +++ b/overlay.c @@ -84,7 +84,7 @@ void TIMING_PAUSE() } /* @PGS/20120615 */ -void TIMING_CHECK(const char *file,const char *func,int line) +void _TIMING_CHECK(const char *file,const char *func,int line) { long long now=overlay_gettime_ms(); if (last_valid) { @@ -103,7 +103,6 @@ void TIMING_CHECK(const char *file,const char *func,int line) last_line=line; last_time=now; } -#define TIMING_CHECK() TIMING_CHECK(__FILE__,__FUNCTION__,__LINE__) int overlayMode=0; diff --git a/serval.h b/serval.h index 2ec61d34..58cf4fc2 100755 --- a/serval.h +++ b/serval.h @@ -114,6 +114,11 @@ struct in_addr { /* bzero(3) is deprecated in favour of memset(3). */ #define bzero(addr,len) memset((addr), 0, (len)) +/* @PGS/20120615 */ +#define TIMING_CHECK() _TIMING_CHECK(__FILE__,__FUNCTION__,__LINE__) +void _TIMING_CHECK(const char *file,const char *func,int line); +void TIMING_PAUSE(); + /* UDP Port numbers for various Serval services. The overlay mesh works over DNA */ #define PORT_DNA 4110