dont need preprocessor shit for swig

This commit is contained in:
Dana Jansens 2003-02-17 17:39:22 +00:00
parent 8bf56a288f
commit fbfa279862

View file

@ -37,7 +37,7 @@ struct MouseContext {
Grip, Grip,
Root, Root,
MenuItem MenuItem
#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) #ifndef DOXYGEN_IGNORE
, NUM_MOUSE_CONTEXT , NUM_MOUSE_CONTEXT
#endif #endif
}; };
@ -50,7 +50,7 @@ struct MouseAction {
Click, Click,
DoubleClick, DoubleClick,
Motion Motion
#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) #ifndef DOXYGEN_IGNORE
, NUM_MOUSE_ACTION , NUM_MOUSE_ACTION
#endif #endif
}; };
@ -60,7 +60,7 @@ struct KeyContext {
enum KC { enum KC {
Menu, Menu,
All All
#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) #ifndef DOXYGEN_IGNORE
, NUM_KEY_CONTEXT , NUM_KEY_CONTEXT
#endif #endif
}; };
@ -70,7 +70,7 @@ struct KeyAction {
enum KA { enum KA {
Press, Press,
Release Release
#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) #ifndef DOXYGEN_IGNORE
, NUM_KEY_ACTION , NUM_KEY_ACTION
#endif #endif
}; };
@ -120,7 +120,7 @@ struct EventAction {
The Client::urgent method can be used to get the status. The Client::urgent method can be used to get the status.
*/ */
UrgentWindow UrgentWindow
#if ! (defined(DOXYGEN_IGNORE) || defined(SWIG)) #ifndef DOXYGEN_IGNORE
, NUM_EVENT_ACTION , NUM_EVENT_ACTION
#endif #endif
}; };
@ -227,15 +227,11 @@ typedef void (*MouseCallback)(MouseData*, void*);
typedef void (*KeyCallback)(KeyData*, void*); typedef void (*KeyCallback)(KeyData*, void*);
typedef void (*EventCallback)(EventData*, void*); typedef void (*EventCallback)(EventData*, void*);
#ifndef SWIG
void python_init(char *argv0); void python_init(char *argv0);
void python_destroy(); void python_destroy();
//! Returns 0 for success, 1 for failing to open the file, 2 for an exception //! Returns 0 for success, 1 for failing to open the file, 2 for an exception
int python_exec(const std::string &path); int python_exec(const std::string &path);
#endif // SWIG
} }