Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

warn.h

Go to the documentation of this file.
00001 // AUTOMATICALLY GENERATED -- DO NOT EDIT!         -*- c++ -*-
00002 
00003 #ifndef warn_h
00004 #define warn_h
00005 
00006 #include <cstdio>
00007 
00008 #include "config.h"
00009 
00010 //
00011 // INTERFACE definition follows 
00012 //
00013 
00014 
00015 enum Warn_level
00016 {
00017   Error   = 0,
00018   Warning = 1,
00019 };
00020 
00021 // We should use something like printf here to take care of the Fiasco-UX
00022 // stack usage
00023 #define WARNX(level,fmt...) \
00024   do {                                          \
00025        if (level   < Config::warn_level)        \
00026          {                                      \
00027            printf("\n\033[31mKERNEL: ");        \
00028            printf(fmt);                         \
00029            printf("\033[m\n");                  \
00030          }                                      \
00031      } while (0)
00032 
00033 #define WARN(fmt...) WARNX(Warning, fmt)
00034 
00035 #endif // warn_h

Generated on Mon Sep 26 14:20:12 2005 for Fiasco by  doxygen 1.4.2