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