[freeldr] Never ever define a macro as multiple instructions. It may lead to subtle bugs

svn path=/trunk/; revision=43117
This commit is contained in:
Hervé Poussineau 2009-09-22 20:33:56 +00:00
parent 39b702d16e
commit 7f582de62c

View file

@ -47,7 +47,7 @@ extern int g_line;
VOID DebugDumpBuffer(ULONG Mask, PVOID Buffer, ULONG Length);
#define DPRINTM g_file=__FILE__;g_line=__LINE__;DbgPrintMask
#define DPRINTM g_file=__FILE__, g_line=__LINE__, DbgPrintMask
#define BugCheck(_x_) { DbgPrintMask(DPRINT_WARNING, "Fatal Error: %s:%d(%s)\n", __FILE__, __LINE__, __FUNCTION__); DbgPrintMask _x_ ; for (;;); }
#define DbgDumpBuffer(_x_, _y_, _z_) DebugDumpBuffer(_x_, _y_, _z_)