freemyipod r45 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r44‎ | r45 | r46 >
Date:02:09, 7 August 2010
Author:theseven
Status:new
Tags:
Comment:
Oops, I should actually commit the added file
Modified paths:
  • /embios/trunk/debug.h (added) (history)

Diff [purge]

Index: embios/trunk/debug.h
@@ -0,0 +1,41 @@
 2+//
 3+//
 4+// Copyright 2010 TheSeven
 5+//
 6+//
 7+// This file is part of emBIOS.
 8+//
 9+// emBIOS is free software: you can redistribute it and/or
 10+// modify it under the terms of the GNU General Public License as
 11+// published by the Free Software Foundation, either version 2 of the
 12+// License, or (at your option) any later version.
 13+//
 14+// emBIOS is distributed in the hope that it will be useful,
 15+// but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 17+// See the GNU General Public License for more details.
 18+//
 19+// You should have received a copy of the GNU General Public License along
 20+// with emBIOS. If not, see <http://www.gnu.org/licenses/>.
 21+//
 22+//
 23+
 24+
 25+#ifndef __DEBUG_H__
 26+#define __DEBUG_H__
 27+
 28+
 29+#include "global.h"
 30+
 31+
 32+#ifdef DEBUG_CONSOLES
 33+#ifdef DEBUG_PRINT_SOURCE_LINE
 34+#define DEBUGF(fmt, args...) cprintf(DEBUG_CONSOLES, "%s:%d: " fmt "\n", __FILE__, __LINE__, ##args)
 35+#else
 36+#define DEBUGF(fmt, args...) cprintf(DEBUG_CONSOLES, fmt "\n", ##args)
 37+#endif
 38+#else
 39+#define DEBUGF(...)
 40+#endif
 41+
 42+#endif