File: main.h

package info (click to toggle)
pd-py 0.2.0%2Bgit20161103.1.d0e0648f-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 612 kB
  • ctags: 538
  • sloc: cpp: 4,617; python: 316; makefile: 11
file content (39 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (2)
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
39
/*
py/pyext - python script object for PD and MaxMSP

Copyright (c)2002-2015 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.2"


#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 pybase;

class FifoEl
    : public FifoCell
{
public:
    void Set(pybase *t,PyObject *f,PyObject *a) { th = t,fun = f,args = a; }
    pybase *th;
    PyObject *fun,*args;
};

typedef PooledFifo<FifoEl> PyFifo;

#endif