diff options
| author | hathach <[email protected]> | 2018-03-29 13:28:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-29 13:28:30 +0700 |
| commit | d63d5d616074cc0ebf03dd0c6384f9b3d915547a (patch) | |
| tree | 4772b480ae87e4f0720af33e3563e013fa3fde20 /tinyusb/common/assertion.h | |
| parent | 1d33d4e07247107af6e8a14467852ed56734924c (diff) | |
more verify and assert clean up
Diffstat (limited to 'tinyusb/common/assertion.h')
| -rw-r--r-- | tinyusb/common/assertion.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tinyusb/common/assertion.h b/tinyusb/common/assertion.h index 6689d66e8..d7dcbe603 100644 --- a/tinyusb/common/assertion.h +++ b/tinyusb/common/assertion.h @@ -85,26 +85,6 @@ extern "C" ASSERT_DEFINE(tusb_error_t status = (tusb_error_t)(sts),\
TUSB_ERROR_NONE == status, status, "%s", tusb_strerr[status])
-//--------------------------------------------------------------------+
-// Integral Assert
-//--------------------------------------------------------------------+
-#define ASSERT_XXX_WITHIN(type_format, lower, upper, actual, error) \
- ASSERT_DEFINE( uint32_t low = (lower); uint32_t up = (upper); uint32_t act = (actual),\
- (low <= act) && (act <= up),\
- error,\
- "expected within " type_format " - " type_format ", actual " type_format, low, up, act)
-
-//--------------------------------------------------------------------+
-// Integer Assert
-//--------------------------------------------------------------------+
-#define ASSERT_INT_WITHIN(...) ASSERT_XXX_WITHIN("%d", __VA_ARGS__)
-
-//--------------------------------------------------------------------+
-// Hex Assert
-//--------------------------------------------------------------------+
-#define ASSERT_HEX_WITHIN(...) ASSERT_XXX_WITHIN("0x%x", __VA_ARGS__)
-
-
#ifdef __cplusplus
}
#endif
|
