summaryrefslogtreecommitdiff
path: root/src/python/swig
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-01-19 09:59:13 -0800
committerNathan Binkert <nate@binkert.org>2009-01-19 09:59:13 -0800
commitf15f252d4e45f74a3b6e5ef0a7afacc656480792 (patch)
tree92445e959dbc707e290659ac9ccdd4782992fdf4 /src/python/swig
parent51d780fa4d84316bdd56a2d7cd405642e887c649 (diff)
downloadgem5-f15f252d4e45f74a3b6e5ef0a7afacc656480792.tar.xz
python: Rework how things are imported
Diffstat (limited to 'src/python/swig')
-rw-r--r--src/python/swig/core.i26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/python/swig/core.i b/src/python/swig/core.i
index 566998639..c567bea4d 100644
--- a/src/python/swig/core.i
+++ b/src/python/swig/core.i
@@ -41,15 +41,24 @@
#include "sim/startup.hh"
extern const char *compileDate;
-std::vector<std::string> compileFlags();
-extern const char *hgRev;
-extern const char *hgDate;
+
+#ifdef DEBUG
+const bool flag_DEBUG = true;
+#else
+const bool flag_DEBUG = false;
+#endif
+#ifdef NDEBUG
+const bool flag_NDEBUG = true;
+#else
+const bool flag_NDEBUG = false;
+#endif
+const bool flag_TRACING_ON = TRACING_ON;
+
inline void disableAllListeners() { ListenSocket::disableAll(); }
%}
%include "stdint.i"
%include "std_string.i"
-%include "std_vector.i"
%include "sim/host.hh"
void setOutputDir(const std::string &dir);
@@ -59,12 +68,9 @@ void disableAllListeners();
%immutable compileDate;
char *compileDate;
-
-namespace std { %template(StringVector) vector<string>; }
-std::vector<std::string> compileFlags();
-
-char *hgRev;
-char *hgDate;
+const bool flag_DEBUG;
+const bool flag_NDEBUG;
+const bool flag_TRACING_ON;
void setClockFrequency(Tick ticksPerSecond);