diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-01-11 04:59:27 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-01-11 04:59:27 +0000 |
commit | f1558e3a9297c6a4fefa9d399a7c9d067d859aa3 (patch) | |
tree | d06d5c6cb9badc428a2ed4d3352f7bad6bfbf1f7 /externals/grill/py/source/main.h | |
parent | ead9ba14ab569e5644e2deeffc436c31b53ea141 (diff) |
added symbol type
fixed incorrect unbinding of instance methods
fixes for symbol type
little restructuring
svn path=/trunk/; revision=2489
Diffstat (limited to 'externals/grill/py/source/main.h')
-rw-r--r-- | externals/grill/py/source/main.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h index 03b67e1c..ef9a16c9 100644 --- a/externals/grill/py/source/main.h +++ b/externals/grill/py/source/main.h @@ -11,23 +11,13 @@ WARRANTIES, see the file, "license.txt," in this distribution. #ifndef __MAIN_H #define __MAIN_H -#define FLEXT_ATTRIBUTES 1 - -#include <flext.h> -#if FLEXT_OS == FLEXT_OS_MAC -#include <Python/Python.h> -#else -#include <Python.h> -#endif +#include "pyprefix.h" +#include "pysymbol.h" #if FLEXT_OS == FLEXT_LINUX || FLEXT_OS == FLEXT_IRIX #include <unistd.h> #endif -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 500) -#error You need at least flext version 0.5.0 -#endif - #define PY__VERSION "0.2.0pre" @@ -61,7 +51,7 @@ protected: class py: public flext_base { - FLEXT_HEADER(py,flext_base) + FLEXT_HEADER_S(py,flext_base,Setup) public: py(); @@ -190,8 +180,12 @@ public: static PyObject* StdOut_Write(PyObject* Self, PyObject* Args); protected: - // callbacks + virtual void m_click(); + + static void Setup(t_classid c); + + // callbacks FLEXT_ATTRVAR_I(detach) FLEXT_ATTRVAR_B(respond) FLEXT_CALLBACK_V(m_stop) |