fix TASK_ASSERT for osal_none.h

add TASK_ASSERT test for osal_none
integrate test project better with eclipse
- assert message--> info windows
- test fail --> error windows
This commit is contained in:
hathach
2013-02-06 13:15:12 +07:00
parent e20025b54d
commit a253e4d648
6 changed files with 80 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ uint32_t osal_tick_get(void);
}
#define TASK_ASSERT_ERROR_HANDLER(error, func_call) \
func_call; state = 0; break
func_call; state = 0; return
#define TASK_ASSERT_STATUS_HANDLER(sts, func_call) \
ASSERT_DEFINE_WITH_HANDLER(TASK_ASSERT_ERROR_HANDLER, func_call, tusb_error_t status = (tusb_error_t)(sts),\