diff options
author | mescalinum <mescalinum@users.sourceforge.net> | 2009-09-26 18:28:46 +0000 |
---|---|---|
committer | mescalinum <mescalinum@users.sourceforge.net> | 2009-09-26 18:28:46 +0000 |
commit | 48166a3836ea82ebbab1d622d5ff770eefbd59a1 (patch) | |
tree | d16abd76aa47c5e1cece01689db07051b80c5454 /composer/Common.hpp | |
parent | becd4c66f77da3ff9078ec06aebb9ade3247e30b (diff) |
- fix update issues with resize/rename/creation
- allow to resize patterns by any dimension
- add license docs
- makefile fixes
svn path=/trunk/externals/ffext/; revision=12466
Diffstat (limited to 'composer/Common.hpp')
-rw-r--r-- | composer/Common.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/composer/Common.hpp b/composer/Common.hpp new file mode 100644 index 0000000..f5d1e30 --- /dev/null +++ b/composer/Common.hpp @@ -0,0 +1,14 @@ +#ifndef COMPOSER_COMMON_H_INCLUDED +#define COMPOSER_COMMON_H_INCLUDED + +#define IS_A_FLOAT(atom,index) ((atom+index)->a_type == A_FLOAT) +#define IS_A_SYMBOL(atom,index) ((atom+index)->a_type == A_SYMBOL) + +//get rid of the "deprecated conversion from string constant to char*'" warning +#define sys_gui(x) sys_gui(const_cast<char*>(x)) +#define sys_vgui(format, args...) sys_vgui(const_cast<char*>(format), ## args) +#define gensym(x) gensym(const_cast<char*>(x)) +#define binbuf_addv(b, format, args...) binbuf_addv(b, const_cast<char*>(format), ## args) +#define WRAP(v,w) (((v)<0)?(((w)-1)-((-(v)-1)%(w))):((v)%(w))) + +#endif // COMPOSER_COMMON_H_INCLUDED |