aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/modmeth.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-05 05:36:32 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-05 05:36:32 +0000
commit60ee6bb60b11bbfbccf56f335c9c6213e6daa79d (patch)
tree99b0c72c60aeba5d1a0489aae9edd16f371d965c /externals/grill/py/source/modmeth.cpp
parentbbd9d289d152f6ef085dec680f0b1611c29f0e32 (diff)
""
svn path=/trunk/; revision=278
Diffstat (limited to 'externals/grill/py/source/modmeth.cpp')
-rw-r--r--externals/grill/py/source/modmeth.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/externals/grill/py/source/modmeth.cpp b/externals/grill/py/source/modmeth.cpp
index b7d2cab0..50d4ac81 100644
--- a/externals/grill/py/source/modmeth.cpp
+++ b/externals/grill/py/source/modmeth.cpp
@@ -101,20 +101,26 @@ PyObject *py::py_blocksize(PyObject *self,PyObject *args)
PyObject *py::py_inchannels(PyObject *self,PyObject *args)
{
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
I ch = sys_get_inchannels();
-#else // MAXMSP
+#elif FLEXT_SYS == FLEXT_SYS_MAX
I ch = sys_getch(); // not functioning
+#else
+#pragma message("Not implemented!")
+ ch = 0;
#endif
return PyLong_FromLong(ch);
}
PyObject *py::py_outchannels(PyObject *self,PyObject *args)
{
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
I ch = sys_get_outchannels();
-#else // MAXMSP
+#elif FLEXT_SYS == FLEXT_SYS_MAX
I ch = sys_getch(); // not functioning
+#else
+#pragma message("Not implemented!")
+ ch = 0;
#endif
return PyLong_FromLong(ch);
}
@@ -139,13 +145,13 @@ PyObject *py::py_send(PyObject *,PyObject *args)
// t_class **cl = (t_class **)GetBound(recv);
t_class **cl = (t_class **)recv->s_thing;
if(cl) {
-#ifdef PD
+#if FLEXT_SYS == FLEXT_SYS_PD
pd_forwardmess(cl,lst->Count(),lst->Atoms());
#else
- #pragma message ("Send is not implemented")
+#pragma message ("Send is not implemented")
#endif
}
-#ifdef _DEBUG
+#ifdef FLEXT_DEBUG
else
post("py/pyext - Receiver doesn't exist");
#endif