From 48166a3836ea82ebbab1d622d5ff770eefbd59a1 Mon Sep 17 00:00:00 2001 From: mescalinum Date: Sat, 26 Sep 2009 18:28:46 +0000 Subject: - 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 --- composer/Common.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 composer/Common.hpp (limited to 'composer/Common.hpp') 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(x)) +#define sys_vgui(format, args...) sys_vgui(const_cast(format), ## args) +#define gensym(x) gensym(const_cast(x)) +#define binbuf_addv(b, format, args...) binbuf_addv(b, const_cast(format), ## args) +#define WRAP(v,w) (((v)<0)?(((w)-1)-((-(v)-1)%(w))):((v)%(w))) + +#endif // COMPOSER_COMMON_H_INCLUDED -- cgit v1.2.1