aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/main.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2003-10-21 02:38:31 +0000
committerThomas Grill <xovo@users.sourceforge.net>2003-10-21 02:38:31 +0000
commitb23e41d46360404ab7bc19d31f6021a52ee9a08c (patch)
treec009a8c41ad8f41be4f3005a517e564d2223755c /externals/grill/py/source/main.h
parent10543931660faf1e9f45558a451cf4aac65a7b91 (diff)
""
svn path=/trunk/; revision=1121
Diffstat (limited to 'externals/grill/py/source/main.h')
-rw-r--r--externals/grill/py/source/main.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h
index fd25e1f1..5188b7c3 100644
--- a/externals/grill/py/source/main.h
+++ b/externals/grill/py/source/main.h
@@ -11,6 +11,8 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#ifndef __MAIN_H
#define __MAIN_H
+#define FLEXT_ATTRIBUTES 1
+
#include <flext.h>
#include <Python.h>
#include <map>
@@ -59,7 +61,11 @@ public:
protected:
- V m_doc();
+ V m__dir(PyObject *obj);
+ V m__doc(PyObject *obj);
+
+ V m_dir() { m__dir(module); }
+ V m_doc() { m__doc(dict); }
PyObject *module,*dict; // inherited user class module and associated dictionary
@@ -99,7 +105,6 @@ protected:
// ----thread stuff ------------
- V m_detach(BL det) { detach = det; }
virtual V m_stop(int argc,const t_atom *argv);
BL detach,shouldexit;
@@ -125,8 +130,9 @@ public:
protected:
// callbacks
- FLEXT_CALLBACK_B(m_detach)
+ FLEXT_ATTRVAR_B(detach)
FLEXT_CALLBACK_V(m_stop)
+ FLEXT_CALLBACK(m_dir)
FLEXT_CALLBACK(m_doc)
FLEXT_CALLBACK_T(tick)
};