// ============================================================================ // // Test Name: MFLKUTIL.H // // Suite: IBM VisualAge C++ Member Function Linkage Keyword Bucket // // Product: IBM VisualAge C++ Version 3.0 // // Author: P. Ng // // ---------------------------------------------------------------------------- // // Tested Op/Func: // // - This header contains the common #defines for Member Function // Linkage Keyword testing. // // ---------------------------------------------------------------------------- // // Modification History: // // Date Init Ver Ref # Description // --------- ---- ---- -------- -------------------------------------- // 21.Aug.95 PNG 1.00 43277 Initial creation // // ============================================================================ #include #define US1 0xAA #define UC1 0xAA #define UI1 0xAAAA #define F1 99999.99 #define D1 99999999.99 #define MF_ARGS() (unsigned short us1, \ unsigned char uc1, \ double d1, \ unsigned int ui1, \ float f1) #define CALLER_ARGS() (US1, UC1, D1, UI1, F1) #define FF_ARGS(FF_ARGS_class_name) (unsigned short us1, \ unsigned char uc1, \ double d1, \ unsigned int ui1, \ float f1, \ FF_ARGS_class_name & obj) #define FF_CALL_ARGS(FF_CALL_ARGS_obj) \ (US1, UC1, D1, UI1, F1, FF_CALL_ARGS_obj) #define ARG_VALUES_CHANGED() (US1 != us1 || UC1 != uc1 || UI1 != ui1) #define ARG_BEING_COMPARED() (US1, us1, UC1, uc1, UI1, ui1) void print_diff (unsigned short arg1, unsigned short arg2, unsigned char arg3, unsigned char arg4, unsigned int arg5, unsigned int arg6) { printf(" us1 expected: %u, us1 actual: %u\n", arg1, arg2); printf(" uc1 expected: %c, uc1 actual: %c\n", arg1, arg2); printf(" ui1 expected: %u, ui1 actual: %u\n", arg1, arg2); return; }