macros.h File Reference
Some useful generic macros.
More...
Go to the source code of this file.
|
Defines |
#define | Panic(args...) |
#define | Assert(expr) |
#define | Kdebug(args...) |
#define | KDEBUG(args...) do {} while (0) |
#define | ASSERT(expr) do {} while (0) |
#define | PANIC(args...) do {} while (0) |
Functions |
void | _exit (int status) |
Detailed Description
Some useful generic macros.
- Date:
- 03/09/2002
- Author:
- Lars Reuther <reuther@os.inf.tu-dresden.de>
Copyright (C) 2000-2002 Dresden University of Technology, Operating Systems Research Group
This file contains free software, you can redistribute it and/or modify it under the terms of the GNU General Public License, Version 2 as published by the Free Software Foundation (see the file COPYING).
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For different licensing schemes please contact <contact@os.inf.tu-dresden.de>.
Definition in file macros.h.
Define Documentation
#define Panic |
( |
args... |
|
) |
|
Value:
do \
{ \
LOGL(args); \
LOG_flush(); \
enter_kdebug("PANIC, 'g' for exit");\
_exit(-1); \
} \
while (1)
Definition at line 59 of file macros.h.
Value:
do \
{ \
if (!(expr)) \
{ \
LOG_printf(#expr "\n"); \
Panic("Assertion failed"); \
} \
} \
while (0)
Definition at line 72 of file macros.h.
#define Kdebug |
( |
args... |
|
) |
|
Value:
do \
{ \
LOGL(args); \
LOG_flush(); \
enter_kdebug("KD"); \
} \
while (0)
Definition at line 85 of file macros.h.