summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-17 17:39:22 +0000
committerDana Jansens <danakj@orodu.net>2003-02-17 17:39:22 +0000
commitfbfa2798623ffa2ae34946070d35eb529a6cb6a9 (patch)
treea1f5f12df05ea3439f9b30408918dc09e9cd6ad3
parent8bf56a288f1c9e828c9a4c2bd48057de2231f5e0 (diff)
dont need preprocessor shit for swig
-rw-r--r--src/python.hh14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/python.hh b/src/python.hh
index f1d701a8..6acc538b 100644
--- a/src/python.hh
+++ b/src/python.hh
@@ -37,7 +37,7 @@ struct MouseContext {
Grip,
Root,
MenuItem
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_MOUSE_CONTEXT
#endif
};
@@ -50,7 +50,7 @@ struct MouseAction {
Click,
DoubleClick,
Motion
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_MOUSE_ACTION
#endif
};
@@ -60,7 +60,7 @@ struct KeyContext {
enum KC {
Menu,
All
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_KEY_CONTEXT
#endif
};
@@ -70,7 +70,7 @@ struct KeyAction {
enum KA {
Press,
Release
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_KEY_ACTION
#endif
};
@@ -120,7 +120,7 @@ struct EventAction {
The Client::urgent method can be used to get the status.
*/
UrgentWindow
-#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG))
+#ifndef DOXYGEN_IGNORE
, NUM_EVENT_ACTION
#endif
};
@@ -227,15 +227,11 @@ typedef void (*MouseCallback)(MouseData*, void*);
typedef void (*KeyCallback)(KeyData*, void*);
typedef void (*EventCallback)(EventData*, void*);
-#ifndef SWIG
-
void python_init(char *argv0);
void python_destroy();
//! Returns 0 for success, 1 for failing to open the file, 2 for an exception
int python_exec(const std::string &path);
-#endif // SWIG
-
}