Wave Arts VQE  1.00
Voice Quality Enhancement
MiscDef.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of the Wave Arts VQE library.
00003  * Copyright (C) 2011 Wave Arts, Inc. (http://wavearts.com)
00004  *
00005  * VQE is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * VQE is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * A copy of the GNU General Public License is included with VQE,
00016  * and can be found online at <http://www.gnu.org/licenses/>.
00017  *
00018  * If you'd like to distribute a closed-source product which uses VQE,
00019  * you must obtain a commercial VQE license from Wave Arts.
00020  */
00025 
00026 
00027 #ifndef _MISC_DEF_H
00028 #define _MISC_DEF_H
00029 
00030 #ifndef FALSE
00031 #define FALSE   0
00032 #define TRUE    (!FALSE)
00033 #endif
00034 
00035 #ifndef false
00036 #define false   0
00037 #define true    (!false)
00038 #endif
00039 
00040 /*
00041  * C++ really complains about pointer types.
00042  */
00043 #ifndef NULL
00044 #ifdef  __cplusplus
00045 #define NULL    0
00046 #else
00047 #define NULL    ((void *)0)
00048 #endif
00049 #endif
00050 
00051 #ifndef MIN
00052 #define MIN(a,b)        (((a) < (b)) ? (a) : (b))
00053 #endif
00054 
00055 #ifndef MAX
00056 #define MAX(a,b)        (((a) > (b)) ? (a) : (b))
00057 #endif
00058 
00059 #ifndef ABS
00060 #define ABS(a)          (((a) < 0) ? -(a) : (a))
00061 #endif
00062 
00063 #ifndef NELEMS
00064 #define NELEMS(array) (sizeof(array) / sizeof(array[0]))
00065 #endif
00066 
00067 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines