blob: 6f095005cd0922209fa8dff2fdaceca3087ccd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* this header aims to make it easy to port Max objects to Pd
*/
/* name changes */
#define SETSYM SETSYMBOL
/* Pd doesn't have longs */
#define SETLONG SETFLOAT
/* allocate memory */
#define sysmem_newptr(size) getbytes(128)
#define sysmem_freeptr(ptr) freebytes(ptr, 128)
#define atom_getlong(atom) atom_getfloatarg(0, 1, atom)
#define atom_getsym(atom) atom_getsymbolarg(0, 1, atom)
#define object_alloc(obj_class) pd_new(obj_class)
#define object_free(obj) pd_free((t_pd*)obj)
|