PortAudio  2.0
Macros | Variables
paqa_macros.h File Reference

Go to the source code of this file.

Macros

#define PAQA_INSTANTIATE_GLOBALS
 
#define ASSERT_TRUE(_exp)
 
#define ASSERT_AB(_a, _b, _op, _opn)
 
#define ASSERT_EQ(_a, _b)   ASSERT_AB(_a, _b, ==, !=)
 
#define ASSERT_NE(_a, _b)   ASSERT_AB(_a, _b, !=, ==)
 
#define ASSERT_GT(_a, _b)   ASSERT_AB(_a, _b, >, <=)
 
#define ASSERT_GE(_a, _b)   ASSERT_AB(_a, _b, >=, <)
 
#define ASSERT_LT(_a, _b)   ASSERT_AB(_a, _b, <, >=)
 
#define ASSERT_LE(_a, _b)   ASSERT_AB(_a, _b, <=, >)
 
#define HOPEFOR(_exp)
 
#define PAQA_PRINT_RESULT   printf("QA Report: %d passed, %d failed.\n", paQaNumPassed, paQaNumFailed )
 
#define PAQA_EXIT_RESULT   (((paQaNumFailed > 0) || (paQaNumPassed == 0)) ? EXIT_FAILURE : EXIT_SUCCESS)
 

Variables

int paQaNumPassed
 
int paQaNumFailed
 

Macro Definition Documentation

#define ASSERT_AB (   _a,
  _b,
  _op,
  _opn 
)
Value:
do \
{ \
int mA = (int)(_a); \
int mB = (int)(_b); \
if (mA _op mB) {\
} \
else { \
printf("ERROR at %s:%d, (%s) %s (%s), %d %s %d\n", \
__FILE__, __LINE__, #_a, #_opn, #_b, mA, #_opn, mB ); \
goto error; \
} \
} while(0)
int paQaNumPassed
int paQaNumFailed
#define ASSERT_EQ (   _a,
  _b 
)    ASSERT_AB(_a, _b, ==, !=)
#define ASSERT_GE (   _a,
  _b 
)    ASSERT_AB(_a, _b, >=, <)
#define ASSERT_GT (   _a,
  _b 
)    ASSERT_AB(_a, _b, >, <=)
#define ASSERT_LE (   _a,
  _b 
)    ASSERT_AB(_a, _b, <=, >)
#define ASSERT_LT (   _a,
  _b 
)    ASSERT_AB(_a, _b, <, >=)
#define ASSERT_NE (   _a,
  _b 
)    ASSERT_AB(_a, _b, !=, ==)
#define ASSERT_TRUE (   _exp)
Value:
do \
{ \
if (_exp) {\
} \
else { \
printf("ERROR at %s:%d, (%s) not true\n", \
__FILE__, __LINE__, #_exp ); \
goto error; \
} \
} while(0)
int paQaNumPassed
int paQaNumFailed
#define HOPEFOR (   _exp)
Value:
do \
{ \
if ((_exp)) {\
} \
else { \
printf("\nERROR - 0x%x - %s for %s\n", result, Pa_GetErrorText(result), #_exp ); \
} \
} while(0)
int paQaNumPassed
int paQaNumFailed
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:435
#define PAQA_EXIT_RESULT   (((paQaNumFailed > 0) || (paQaNumPassed == 0)) ? EXIT_FAILURE : EXIT_SUCCESS)
#define PAQA_INSTANTIATE_GLOBALS
Value:
int paQaNumPassed = 0;\
int paQaNumFailed = 0;
int paQaNumPassed
int paQaNumFailed
#define PAQA_PRINT_RESULT   printf("QA Report: %d passed, %d failed.\n", paQaNumPassed, paQaNumFailed )

Variable Documentation

int paQaNumFailed
int paQaNumPassed