mirror of
https://github.com/deadw00d/AROS.git
synced 2025-10-26 21:18:42 +00:00
Add XGET and CU_ASSERT_EQUAL macros
This commit is contained in:
@ -60,6 +60,13 @@ static ULONG SAVEDS func(REG(a0, struct IClass *cl), \
|
||||
#define MUIM_Window_Cleanup 0x8042ab26 /* Custom Class */ /* V18 */
|
||||
#endif
|
||||
|
||||
#define XGET(object, attribute) \
|
||||
({ \
|
||||
IPTR __storage = 0; \
|
||||
GetAttr((attribute), (object), &__storage); \
|
||||
__storage; \
|
||||
})
|
||||
|
||||
#define CU_SUITE_SETUP static int __cu_suite_setup
|
||||
#define CU_SUITE_TEARDOWN static int __cu_suite_teardown
|
||||
#define CU_TEST_SETUP static void __cu_test_setup
|
||||
@ -68,6 +75,9 @@ static ULONG SAVEDS func(REG(a0, struct IClass *cl), \
|
||||
#define CUE_SUCCESS 0
|
||||
#define CUE_SINIT_FAILED 22
|
||||
|
||||
#define CU_ASSERT_EQUAL(expected, actual) \
|
||||
CU_ASSERT(expected == actual)
|
||||
|
||||
#define CU_ASSERT(expr) \
|
||||
if (!(expr)) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user