Lines Matching refs:exp
34 #define NN_ASSERTMSG(exp, ...) \ argument
35 (void) ((exp) || ( NN_LOG("Failed assertion at %s:%d\n ", NN_FILE_NAME, __LINE__), \
40 … #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) \ argument
41 …(void) ((exp) || ( NN_LOG("Result Assertion cannot be used on Kernel at %s:%d\n ", NN_FILE_NAME, …
48 #define NN_ASSERTMSG(exp, ...) \ argument
49 … (void) ((exp) || nndbgAssertionFailureHandler(true, NN_FILE_NAME, __LINE__, __VA_ARGS__))
50 #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) \ argument
51 …(void) ((exp) || nnResultFailureHandler(static_cast< ::nn::Result>(result), NN_FILE_NAME, __LINE__…
53 #define NN_ASSERTMSG(exp, ...) \ argument
54 (void) ((exp) || nndbgAssertionFailureHandler(false, NULL, __LINE__, NULL))
55 #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) \ argument
56 … (void) ((exp) || nnResultFailureHandler(static_cast< ::nn::Result>(result), NULL, __LINE__, NULL))
60 #define NN_ASSERTMSG(exp, ...) ((void)0) argument
61 #define NN_ASSERTMSG_WITH_RESULT(exp, result, ...) ((void)0) argument
66 #define NN_TASSERTMSG_(exp, ...) \ argument
67 (void) ((exp) || ( NN_TLOG_("Failed assertion at %s:%d\n ", NN_FILE_NAME, __LINE__), \
72 #define NN_SASSERTMSG_(exp, ...) \ argument
73 (void) ((exp) || ( NN_SLOG_("Failed assertion at %s:%d\n ", NN_FILE_NAME, __LINE__), \
78 …#define NN_TASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument
79 …(void) ((exp) || ( NN_TLOG_("Result Assertion cannot be used on Kernel at %s:%d\n ", NN_FILE_NAME…
84 …#define NN_SASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument
85 …(void) ((exp) || ( NN_SLOG_("Result Assertion cannot be used on Kernel at %s:%d\n ", NN_FILE_NAME…
92 #define NN_TASSERTMSG_(exp, ...) \ argument
93 … (void) ((exp) || nndbgTAssertionFailureHandler(true, NN_FILE_NAME, __LINE__, __VA_ARGS__))
94 #define NN_SASSERTMSG_(exp, ...) \ argument
95 … (void) ((exp) || nndbgAssertionFailureHandler(true, NN_FILE_NAME, __LINE__, __VA_ARGS__))
96 #define NN_TASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument
97 …(void) ((exp) || nnResultTFailureHandler(static_cast< ::nn::Result>(result), NN_FILE_NAME, __LINE_…
98 #define NN_SASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument
99 …(void) ((exp) || nnResultFailureHandler(static_cast< ::nn::Result>(result), NN_FILE_NAME, __LINE__…
101 #define NN_TASSERTMSG_(exp, ...) \ argument
102 (void) ((exp) || nndbgTAssertionFailureHandler(false, NULL, __LINE__, NULL))
103 #define NN_SASSERTMSG_(exp, ...) \ argument
104 (void) ((exp) || nndbgAssertionFailureHandler(false, NULL, __LINE__, NULL))
105 #define NN_TASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument
106 …(void) ((exp) || nnResultTFailureHandler(static_cast< ::nn::Result>(result), NULL, __LINE__, NULL))
107 #define NN_SASSERTMSG_WITH_RESULT_(exp, result, ...) \ argument
108 … (void) ((exp) || nnResultFailureHandler(static_cast< ::nn::Result>(result), NULL, __LINE__, NULL))
112 #define NN_TASSERTMSG_(exp, ...) ((void)0) argument
113 #define NN_SASSERTMSG_(exp, ...) ((void)0) argument
114 #define NN_TASSERTMSG_WITH_RESULT_(exp, result, ...) ((void)0) argument
115 #define NN_SASSERTMSG_WITH_RESULT_(exp, result, ...) ((void)0) argument
124 #define NN_ASSERT(exp) NN_ASSERTMSG((exp), "%s", #exp) argument
125 #define NN_TASSERT_(exp) NN_TASSERTMSG_((exp), "%s", #exp) argument
126 #define NN_SASSERT_(exp) NN_SASSERTMSG_((exp), "%s", #exp) argument
128 #define NN_ASSERT_RESULT(exp) NN_ASSERTMSG_WITH_RESULT((exp).IsSuccess(), (exp), "") argument
129 #define NN_TASSERT_RESULT_(exp) NN_TASSERTMSG_WITH_RESULT_((exp).IsSuccess(), (exp), "") argument
130 #define NN_SASSERT_RESULT_(exp) NN_SASSERTMSG_WITH_RESULT_((exp).IsSuccess(), (exp), "") argument
132 #define NN_NULL_ASSERT(exp) NN_ASSERTMSG( (exp) != NULL, "%s must not be NULL", #ex… argument
133 #define NN_NULL_TASSERT_(exp) NN_TASSERTMSG_( (exp) != NULL, "%s must not be NULL", #… argument
134 #define NN_NULL_SASSERT_(exp) NN_SASSERTMSG_( (exp) != NULL, "%s must not be NULL", #… argument
136 …ne NN_ALIGN_ASSERT(exp, align) NN_ASSERTMSG( ((uptr)(exp)) % (align) == 0, "%s(=0x%08x) mu… argument
137 … NN_ALIGN_TASSERT_(exp, align) NN_TASSERTMSG_( ((uptr)(exp)) % (align) == 0, "%s(=0x%08x) mu… argument
138 … NN_ALIGN_SASSERT_(exp, align) NN_SASSERTMSG_( ((uptr)(exp)) % (align) == 0, "%s(=0x%08x) mu… argument
140 #define NN_MIN_ASSERT(exp, min) NN_ASSERTMSG( (exp) >= (min), "%s(=%d) must be >= %s(=%… argument
141 #define NN_MIN_TASSERT_(exp, min) NN_TASSERTMSG_( (exp) >= (min), "%s(=%d) must be >= %s(… argument
142 #define NN_MIN_SASSERT_(exp, min) NN_SASSERTMSG_( (exp) >= (min), "%s(=%d) must be >= %s(… argument
144 #define NN_MAX_ASSERT(exp, max) NN_ASSERTMSG( (exp) <= (max), "%s(=%d) must be <= %s(=%… argument
145 #define NN_MAX_TASSERT_(exp, max) NN_TASSERTMSG_( (exp) <= (max), "%s(=%d) must be <= %s(… argument
146 #define NN_MAX_SASSERT_(exp, max) NN_SASSERTMSG_( (exp) <= (max), "%s(=%d) must be <= %s(… argument
148 …_MINMAX_ASSERT(exp, min, max) NN_ASSERTMSG( (exp) >= (min) && (exp) <= (max), "%s(=%d) must be… argument
149 …INMAX_TASSERT_(exp, min, max) NN_TASSERTMSG_( (exp) >= (min) && (exp) <= (max), "%s(=%d) must be… argument
150 …INMAX_SASSERT_(exp, min, max) NN_SASSERTMSG_( (exp) >= (min) && (exp) <= (max), "%s(=%d) must be… argument
152 #define NN_EQUAL_ASSERT(exp, equ) NN_ASSERTMSG( (exp) == (equ), "%s(=%d) must be == %s(=%… argument
153 #define NN_EQUAL_TASSERT_(exp, equ) NN_TASSERTMSG_( (exp) == (equ), "%s(=%d) must be == %s(… argument
154 #define NN_EQUAL_SASSERT_(exp, equ) NN_SASSERTMSG_( (exp) == (equ), "%s(=%d) must be == %s(… argument
156 #define NN_NOT_EQUAL_ASSERT(exp, equ) NN_ASSERTMSG( (exp) != (equ), "%s(=%d) must be != %s(=%… argument
157 #define NN_NOT_EQUAL_TASSERT_(exp, equ) NN_TASSERTMSG_( (exp) != (equ), "%s(=%d) must be != %s(… argument
158 #define NN_NOT_EQUAL_SASSERT_(exp, equ) NN_SASSERTMSG_( (exp) != (equ), "%s(=%d) must be != %s(… argument
168 #define NN_ASSERT_WITH_RESULT(exp, result) NN_ASSERTMSG_WITH_RESULT( (exp), (result), "%s", #e… argument
169 #define NN_TASSERT_WITH_RESULT_(exp, result) NN_TASSERTMSG_WITH_RESULT_( (exp), (result), "%s", … argument
170 #define NN_SASSERT_WITH_RESULT_(exp, result) NN_SASSERTMSG_WITH_RESULT_( (exp), (result), "%s", … argument
172 #define NN_FLOAT_ASSERT(exp) \ argument
173 …NN_ASSERTMSG((-FLT_MAX <= (exp) && (exp) <= FLT_MAX), "Floating Point Value Error\n"#exp" is infin…
174 #define NN_FLOAT_TASSERT_(exp) \ argument
175 …NN_TASSERTMSG_((-FLT_MAX <= (exp) && (exp) <= FLT_MAX), "Floating Point Value Error\n"#exp" is inf…
176 #define NN_FLOAT_SASSERT_(exp) \ argument
177 …NN_SASSERTMSG_((-FLT_MAX <= (exp) && (exp) <= FLT_MAX), "Floating Point Value Error\n"#exp" is inf…
181 #define NN_RESULT_ASSERT(exp) NN_UTIL_PANIC_IF_FAILED(exp) argument
183 #define NN_RESULT_ASSERT(exp) ((void)0) argument
255 #define NN_WARNING(exp, ...) (void) ((exp) || (nndbgDetailPrintf(__VA_ARGS__), 0)) argument
257 #define NN_WARNING(exp, ...) ((void)0) argument
260 #define NN_WARNING(exp, ...) ((void)0) argument
265 #define NN_TWARNING_(exp, ...) (void) ((exp) || (nndbgDetailTPrintf(__VA_ARGS__), 0)) argument
266 #define NN_SWARNING_(exp, ...) (void) ((exp) || (nndbgDetailPrintf(__VA_ARGS__), 0)) argument
268 #define NN_TWARNING_(exp, ...) ((void)0) argument
269 #define NN_SWARNING_(exp, ...) ((void)0) argument
272 #define NN_TWARNING_(exp, ...) ((void)0) argument
273 #define NN_SWARNING_(exp, ...) ((void)0) argument