Go to the documentation of this file.00001
00043 #if !defined (DBC_H)
00044 #define DBC_H
00045
00046
00047
00048 #include <dsplink.h>
00049
00050
00051 #if defined (__cplusplus)
00052 extern "C" {
00053 #endif
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 #define DBC_PRINTF PRINT_Printf
00064
00065
00066 #if defined (DDSP_DEBUG)
00067
00074 #define DBC_Assert(exp) \
00075 if (!(exp)) { \
00076 DBC_PRINTF ("Assertion failed ("#exp"). File : "__FILE__ \
00077 " Line : %d\n", __LINE__) ; \
00078 }
00079
00086 #define DBC_Require DBC_Assert
00087
00094 #define DBC_Ensure DBC_Assert
00095
00096 #else
00097
00098
00099
00100
00101
00102
00103
00104 #define DBC_Assert(exp)
00105 #define DBC_Require(exp)
00106 #define DBC_Ensure(exp)
00107
00108 #endif
00109
00110
00111 #if defined (__cplusplus)
00112 }
00113 #endif
00114
00115
00116 #endif