The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
mha_defs.h File Reference

Preprocessor definitions common to all MHA components. More...

Macros

#define CHECK_EXPR(x)   {if(!(x)){throw MHA_Error(__FILE__,__LINE__,"The expression \"" #x "\" is invalid.");}}
 
#define CHECK_VAR(x)   {if(!(x)){throw MHA_Error(__FILE__,__LINE__,"The variable \"" #x "\" is not defined.");}}
 
#define M_PI   3.14159265358979323846
 Define pi if it is not defined yet. More...
 

Detailed Description

Preprocessor definitions common to all MHA components.

This file contains all preprocessor and type definitions which are common to all Master Hearing Aid components.

Macro Definition Documentation

◆ CHECK_EXPR

#define CHECK_EXPR (   x)    {if(!(x)){throw MHA_Error(__FILE__,__LINE__,"The expression \"" #x "\" is invalid.");}}

◆ CHECK_VAR

#define CHECK_VAR (   x)    {if(!(x)){throw MHA_Error(__FILE__,__LINE__,"The variable \"" #x "\" is not defined.");}}

◆ M_PI

#define M_PI   3.14159265358979323846

Define pi if it is not defined yet.