blob: 479c082d92ef15e25bac6531b411b92c6a74f498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
py/pyext - python script object for PD and MaxMSP
Copyright (c)2002-2005 Thomas Grill (gr@grrrr.org)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
*/
#ifndef __MAIN_H
#define __MAIN_H
#include "pyprefix.h"
#define PY__VERSION "0.2.1pre"
#define PYEXT_MODULE "pyext" // name for module
#define PYEXT_CLASS "_class" // name for base class
#define REGNAME "_registry"
#define PY_STOP_WAIT 100 // ms
#define PY_STOP_TICK 1 // ms
class FifoEl
: public Fifo::Cell
{
public:
void Set(PyObject *f,PyObject *a) { fun = f,args = a; }
PyObject *fun,*args;
};
typedef PooledFifo<FifoEl> PyFifo;
#endif
|