Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
changeset 274:43b0a2585dc3 Dev_ML
Compiles and runs, up to end of process, working on end process and shutdown
| author | Sean Halle <seanhalle@yahoo.com> |
|---|---|
| date | Sat, 02 Mar 2013 09:52:23 -0800 |
| parents | 40e7625e57bd |
| children | 7ab0d5bf16cb |
| files | Services_Offered_by_PR/Debugging/DEBUG__macros.h |
| diffstat | 1 files changed, 65 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Services_Offered_by_PR/Debugging/DEBUG__macros.h Sat Mar 02 09:52:23 2013 -0800 1.3 @@ -0,0 +1,65 @@ 1.4 +/* 1.5 + * Copyright 2009 OpenSourceResearchInstitute.org 1.6 + * Licensed under GNU General Public License version 2 1.7 + * 1.8 + * Author: seanhalle@yahoo.com 1.9 + * 1.10 + */ 1.11 + 1.12 +#ifndef _PR_DEFS_DEBUG_H 1.13 +#define _PR_DEFS_DEBUG_H 1.14 +#define _GNU_SOURCE 1.15 + 1.16 +/* 1.17 + */ 1.18 +#ifdef DEBUG__TURN_ON_DEBUG_PRINT 1.19 + #define DEBUG__printf( bool, msg) \ 1.20 + do{\ 1.21 + if(bool)\ 1.22 + { printf(msg);\ 1.23 + printf(" | function: %s\n", __FUNCTION__);\ 1.24 + fflush(stdin);\ 1.25 + }\ 1.26 + }while(0);/*macro magic to isolate var-names*/ 1.27 + 1.28 + #define DEBUG__printf1( bool, msg, param) \ 1.29 + do{\ 1.30 + if(bool)\ 1.31 + { printf(msg, param);\ 1.32 + printf(" | function: %s\n", __FUNCTION__);\ 1.33 + fflush(stdin);\ 1.34 + }\ 1.35 + }while(0);/*macro magic to isolate var-names*/ 1.36 + 1.37 + #define DEBUG__printf2( bool, msg, p1, p2) \ 1.38 + do{\ 1.39 + if(bool)\ 1.40 + { printf(msg, p1, p2); \ 1.41 + printf(" | function: %s\n", __FUNCTION__);\ 1.42 + fflush(stdin);\ 1.43 + }\ 1.44 + }while(0);/*macro magic to isolate var-names*/ 1.45 + 1.46 + #define DEBUG__printf3( bool, msg, p1, p2, p3) \ 1.47 + do{\ 1.48 + if(bool)\ 1.49 + { printf(msg, p1, p2, p3); \ 1.50 + printf(" | function: %s\n", __FUNCTION__);\ 1.51 + fflush(stdin);\ 1.52 + }\ 1.53 + }while(0);/*macro magic to isolate var-names*/ 1.54 + 1.55 +#else 1.56 + #define DEBUG__printf( bool, msg) 1.57 + #define DEBUG__printf1( bool, msg, param) 1.58 + #define DEBUG__printf2( bool, msg, p1, p2) 1.59 +#endif 1.60 + 1.61 +//============================= ERROR MSGs ============================ 1.62 +#define ERROR(msg) printf(msg); 1.63 +#define ERROR1(msg, param) printf(msg, param); 1.64 +#define ERROR2(msg, p1, p2) printf(msg, p1, p2); 1.65 + 1.66 +//=========================================================================== 1.67 +#endif /* _PR_DEFS_H */ 1.68 +
