summaryrefslogtreecommitdiffstats
path: root/pokemodr
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-03 23:12:56 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-03 23:12:56 +0000
commit21cb50c82f18b3a2ee1e77a7de11413ce45e6587 (patch)
tree33d1c600c9e26756580c92ea6b331041699510eb /pokemodr
parent621d0f09fafba69aa650bc1555927f41e9c8e60e (diff)
downloadsigen-21cb50c82f18b3a2ee1e77a7de11413ce45e6587.tar.gz
sigen-21cb50c82f18b3a2ee1e77a7de11413ce45e6587.tar.xz
sigen-21cb50c82f18b3a2ee1e77a7de11413ce45e6587.zip
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@7 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr')
-rw-r--r--pokemodr/PokeModr.cpp7
-rw-r--r--pokemodr/PokeModrDebug.h57
2 files changed, 39 insertions, 25 deletions
diff --git a/pokemodr/PokeModr.cpp b/pokemodr/PokeModr.cpp
index 38b9524f..15a10bb8 100644
--- a/pokemodr/PokeModr.cpp
+++ b/pokemodr/PokeModr.cpp
@@ -31,16 +31,15 @@
#include "../pokemod/pokemod_inc.h"
using namespace std;
-using namespace PokeMod;
+using namespace PokeGen;
#define PKMR_VERSION "0.0.0.1a"
#define PKMR_DATE "Thursday, February 8, 2007"
#define PKMR_WEBSITE "http:/""/nerdyproductions.sobertillnoon.com"
-PMPokemod curPokeMod;
+PokeMod::Pokemod curPokeMod;
-int debugLevel;
-int PMdebugLevel;
+int PokeModrDebugLevel;
int main(int argc, char *argv[])
{
diff --git a/pokemodr/PokeModrDebug.h b/pokemodr/PokeModrDebug.h
index fd891d6b..ba87de22 100644
--- a/pokemodr/PokeModrDebug.h
+++ b/pokemodr/PokeModrDebug.h
@@ -1,10 +1,10 @@
/////////////////////////////////////////////////////////////////////////////
// Name: debug.h
-// Purpose: Define debugging stuff for PokéModr
+// Purpose: Define debugging stuff for PokéModr
// Author: Ben Boeckel
// Modified by: Ben Boeckel
// Created: Thu Feb 15 12:30:45 2007
-// Copyright: ©2007 Ben Boeckel and Nerdy Productions
+// Copyright: ©2007 Ben Boeckel and Nerdy Productions
// Licence:
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -24,30 +24,45 @@
#ifndef __PKMR_DEBUG__
#define __PKMR_DEBUG__
-#define __WXDEBUG__
+#define PKMR_DEBUG
-#define PM_DEBUG
-#ifdef PM_DEBUG
+#ifdef PKMR_DEBUG
-#define PM_DEBUG_OUTPUT_FILE
-#define PM_DEBUG_OUTPUT_CONSOLE
-#define PM_DEBUG_OUTPUT_DEBUG
+# define PKMR_DEBUG_OUTPUT_FILE
+# define PKMR_DEBUG_OUTPUT_CONSOLE
-#endif
+# include <ctime>
-#define PKMR_DEBUG
-#ifdef PKMR_DEBUG
-enum PokeModrDebug
+# ifdef PKMR_DEBUG_OUTPUT_FILE
+# include <fstream>
+# endif
+
+# ifdef PKMR_DEBUG_OUTPUT_CONSOLE
+# include <cstdio>
+# endif
+
+# if !defined(PKMR_DEBUG_OUTPUT_FILE) && !defined(PKMR_DEBUG_OUTPUT_CONSOLE) && !defined(PG_DEBUG_WINDOW)
+# error "Debugging turned on, but no output specified!"
+# endif
+
+namespace PokeGen
{
- PKMR_DEBUG_EMERGENCY = 0,
- PKMR_DEBUG_ALERT = 1,
- PKMR_DEBUG_CRITICAL_ERROR = 2,
- PKMR_DEBUG_ERROR = 3,
- PKMR_DEBUG_WARNING = 4,
- PKMR_DEBUG_NOTICE = 5,
- PKMR_DEBUG_INFO = 6,
- PKMR_DEBUG_DEBUG = 7
-};
+ namespace PokeModr
+ {
+ enum PokeModrDebug
+ {
+ PKMR_DEBUG_EMERGENCY = 0,
+ PKMR_DEBUG_ALERT = 1,
+ PKMR_DEBUG_CRITICAL_ERROR = 2,
+ PKMR_DEBUG_ERROR = 3,
+ PKMR_DEBUG_WARNING = 4,
+ PKMR_DEBUG_NOTICE = 5,
+ PKMR_DEBUG_INFO = 6,
+ PKMR_DEBUG_DEBUG = 7
+ };
+ }
+}
+
#endif
#endif