Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit db45187

Browse files
committed
Reverse out macro fix for the time being.
1 parent 8758985 commit db45187

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/include/c.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: c.h,v 1.67 2000/04/12 05:24:50 momjian Exp $
11+
* $Id: c.h,v 1.68 2000/04/12 05:29:10 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -531,11 +531,9 @@ typedef struct Exception
531531
*
532532
*/
533533
#define Trap(condition, exception) \
534-
do { \
535-
if ((assert_enabled) && (condition)) \
534+
{ if ((assert_enabled) && (condition)) \
536535
ExceptionalCondition(CppAsString(condition), &(exception), \
537-
(char*)NULL, __FILE__, __LINE__); \
538-
} while (0)
536+
(char*)NULL, __FILE__, __LINE__); }
539537

540538
/*
541539
* TrapMacro is the same as Trap but it's intended for use in macros:
@@ -579,11 +577,9 @@ extern int assert_enabled;
579577
*
580578
*/
581579
#define LogTrap(condition, exception, printArgs) \
582-
do { \
583-
if ((assert_enabled) && (condition)) \
580+
{ if ((assert_enabled) && (condition)) \
584581
ExceptionalCondition(CppAsString(condition), &(exception), \
585-
vararg_format printArgs, __FILE__, __LINE__); \
586-
} while (0)
582+
vararg_format printArgs, __FILE__, __LINE__); }
587583

588584
/*
589585
* LogTrapMacro is the same as LogTrap but it's intended for use in macros:

0 commit comments

Comments
 (0)