From b3f485a568de559a632369baa28a5696825a9502 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Wed, 4 Apr 2012 18:57:42 +0000 Subject: [PATCH] Move some debugging stuff out of compat.h into glbuild.h and common.h. git-svn-id: https://svn.eduke32.com/eduke32@2586 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/common.h | 5 +++++ polymer/eduke32/build/include/compat.h | 10 ---------- polymer/eduke32/build/include/glbuild.h | 5 +++++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/polymer/eduke32/build/include/common.h b/polymer/eduke32/build/include/common.h index 76757a900..594fd593b 100644 --- a/polymer/eduke32/build/include/common.h +++ b/polymer/eduke32/build/include/common.h @@ -62,4 +62,9 @@ void G_DoAutoload(const char *dirname); char *dup_filename(const char *fn); +// timer defs for profiling function chunks the simple way +#define EDUKE32_TMRDEF int32_t t[20], ti=0; const char *tmrstr=__func__; fprintf(stderr,"%s\n",tmrstr); t[ti++]=getticks(); +#define EDUKE32_TMRTIC t[ti++]=getticks() +#define EDUKE32_TMRPRN do { int ii=0; fprintf(stderr,"%s: ",tmrstr); for (ii=1; ii