Jamoma API  0.6.0.a19
JamomaPdObjectTypes.h
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationPdLibrary
4  *
5  * @brief Data types for Max objects that fit more naturally with the Jamoma coding style.
6  *
7  * @details
8  *
9  * @authors Tim Place, Antoine Villeret
10  *
11  * @copyright Copyright © 2006, Tim Place @n
12  * Copyright © 2015, Antoine Villeret@n
13  * This code is licensed under the terms of the "New BSD License" @n
14  * http://creativecommons.org/licenses/BSD/
15  */
16 
17 #ifndef __JAMOMA_PD_OBJECT_TYPES_H__
18 #define __JAMOMA_PD_OBJECT_TYPES_H__
19 
20 #include "JamomaForPd.h"
21 
22 // typedef t_pxobject MspObject;
23 
24 // typedef t_class* ClassPtr;
25 // typedef MspObject* MspObjectPtr;
26 // typedef t_max_err MaxErr;
27 
28 // typedef t_linklist* LinkedListPtr;
29 // typedef t_hashtab* HashtabPtr;
30 
31 // use SymbolGen() instead of gensym() so that we don't have tons of const warningss
32 template <class T>
33 t_symbol *SymbolGen(T stringArg)
34 {
35  return gensym((char*)stringArg);
36 }
37 
38 template <class T>
39 t_symbol * SymbolGen(const char* stringArg)
40 {
41  return gensym((char*)stringArg);
42 }
43 
44 #ifndef SELF
45 #define SELF (t_object*(self))
46 #endif
47 
48 #endif // __JAMOMA_PD_OBJECT_TYPES_H__
Various utilities for interfacing with Pd that are not specific to JamomaModular as such...