Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fff.h File Reference
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  fff_globals_t
 

Macros

#define FFF_MAX_ARGS   (20u)
 
#define FFF_ARG_HISTORY_LEN   (50u)
 
#define FFF_CALL_HISTORY_LEN   (50u)
 
#define FFF_GCC_FUNCTION_ATTRIBUTES
 
#define CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN, FUNCNAME, ...)
 
#define SET_RETURN_SEQ(FUNCNAME, ARRAY_POINTER, ARRAY_LEN)
 
#define SET_CUSTOM_FAKE_SEQ(FUNCNAME, ARRAY_POINTER, ARRAY_LEN)
 
#define RESET_FAKE(FUNCNAME)
 
#define DECLARE_ARG(type, n, FUNCNAME)
 
#define DECLARE_ALL_FUNC_COMMON
 
#define DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE)
 
#define SAVE_ARG(FUNCNAME, n)
 
#define ROOM_FOR_MORE_HISTORY(FUNCNAME)
 
#define SAVE_RET_HISTORY(FUNCNAME, RETVAL)
 
#define SAVE_ARG_HISTORY(FUNCNAME, ARGN)
 
#define HISTORY_DROPPED(FUNCNAME)
 
#define DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE)
 
#define DECLARE_CUSTOM_FAKE_SEQ_VARIABLES
 
#define INCREMENT_CALL_COUNT(FUNCNAME)
 
#define RETURN_FAKE_RESULT(FUNCNAME)
 
#define FFF_EXTERN_C
 
#define FFF_END_EXTERN_C
 
#define DEFINE_RESET_FUNCTION(FUNCNAME)
 
#define DEFINE_FFF_GLOBALS
 
#define FFF_RESET_HISTORY()
 
#define REGISTER_CALL(function)
 
#define DECLARE_FAKE_VOID_FUNC0(FUNCNAME)
 
#define DEFINE_FAKE_VOID_FUNC0(FUNCNAME)
 
#define FAKE_VOID_FUNC0(FUNCNAME)
 
#define DECLARE_FAKE_VOID_FUNC1(FUNCNAME, ARG0_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC1(FUNCNAME, ARG0_TYPE)
 
#define FAKE_VOID_FUNC1(FUNCNAME, ARG0_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC2(FUNCNAME, ARG0_TYPE, ARG1_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC2(FUNCNAME, ARG0_TYPE, ARG1_TYPE)
 
#define FAKE_VOID_FUNC2(FUNCNAME, ARG0_TYPE, ARG1_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC3(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC3(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE)
 
#define FAKE_VOID_FUNC3(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC4(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC4(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE)
 
#define FAKE_VOID_FUNC4(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC5(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC5(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE)
 
#define FAKE_VOID_FUNC5(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC6(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC6(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE)
 
#define FAKE_VOID_FUNC6(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC7(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC7(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE)
 
#define FAKE_VOID_FUNC7(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC8(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC8(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE)
 
#define FAKE_VOID_FUNC8(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC9(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC9(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE)
 
#define FAKE_VOID_FUNC9(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC10(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC10(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE)
 
#define FAKE_VOID_FUNC10(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC11(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC11(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE)
 
#define FAKE_VOID_FUNC11(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC12(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC12(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE)
 
#define FAKE_VOID_FUNC12(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC13(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC13(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE)
 
#define FAKE_VOID_FUNC13(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC14(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC14(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE)
 
#define FAKE_VOID_FUNC14(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC15(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC15(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE)
 
#define FAKE_VOID_FUNC15(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC16(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC16(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE)
 
#define FAKE_VOID_FUNC16(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC17(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC17(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE)
 
#define FAKE_VOID_FUNC17(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC18(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC18(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE)
 
#define FAKE_VOID_FUNC18(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC19(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC19(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE)
 
#define FAKE_VOID_FUNC19(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC20(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ARG19_TYPE)
 
#define DEFINE_FAKE_VOID_FUNC20(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ARG19_TYPE)
 
#define FAKE_VOID_FUNC20(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ARG19_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC0(RETURN_TYPE, FUNCNAME)
 
#define DEFINE_FAKE_VALUE_FUNC0(RETURN_TYPE, FUNCNAME)
 
#define FAKE_VALUE_FUNC0(RETURN_TYPE, FUNCNAME)
 
#define DECLARE_FAKE_VALUE_FUNC1(RETURN_TYPE, FUNCNAME, ARG0_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC1(RETURN_TYPE, FUNCNAME, ARG0_TYPE)
 
#define FAKE_VALUE_FUNC1(RETURN_TYPE, FUNCNAME, ARG0_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC2(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC2(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE)
 
#define FAKE_VALUE_FUNC2(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC3(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC3(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE)
 
#define FAKE_VALUE_FUNC3(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC4(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC4(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE)
 
#define FAKE_VALUE_FUNC4(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC5(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC5(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE)
 
#define FAKE_VALUE_FUNC5(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC6(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC6(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE)
 
#define FAKE_VALUE_FUNC6(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC7(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC7(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE)
 
#define FAKE_VALUE_FUNC7(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC8(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC8(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE)
 
#define FAKE_VALUE_FUNC8(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC9(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC9(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE)
 
#define FAKE_VALUE_FUNC9(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC10(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC10(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE)
 
#define FAKE_VALUE_FUNC10(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC11(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC11(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE)
 
#define FAKE_VALUE_FUNC11(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC12(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC12(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE)
 
#define FAKE_VALUE_FUNC12(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC13(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC13(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE)
 
#define FAKE_VALUE_FUNC13(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC14(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC14(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE)
 
#define FAKE_VALUE_FUNC14(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC15(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC15(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE)
 
#define FAKE_VALUE_FUNC15(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC16(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC16(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE)
 
#define FAKE_VALUE_FUNC16(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC17(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC17(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE)
 
#define FAKE_VALUE_FUNC17(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC18(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC18(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE)
 
#define FAKE_VALUE_FUNC18(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC19( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC19(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE)
 
#define FAKE_VALUE_FUNC19(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE)
 
#define DECLARE_FAKE_VALUE_FUNC20( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ARG19_TYPE)
 
#define DEFINE_FAKE_VALUE_FUNC20( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ARG19_TYPE)
 
#define FAKE_VALUE_FUNC20(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ARG19_TYPE)
 
#define DECLARE_FAKE_VOID_FUNC2_VARARG(FUNCNAME, ARG0_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC2_VARARG(FUNCNAME, ARG0_TYPE, ...)
 
#define FAKE_VOID_FUNC2_VARARG(FUNCNAME, ARG0_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC3_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC3_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ...)
 
#define FAKE_VOID_FUNC3_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC4_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC4_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ...)
 
#define FAKE_VOID_FUNC4_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC5_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC5_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ...)
 
#define FAKE_VOID_FUNC5_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC6_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC6_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ...)
 
#define FAKE_VOID_FUNC6_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC7_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC7_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ...)
 
#define FAKE_VOID_FUNC7_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC8_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC8_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ...)
 
#define FAKE_VOID_FUNC8_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC9_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC9_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ...)
 
#define FAKE_VOID_FUNC9_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC10_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC10_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ...)
 
#define FAKE_VOID_FUNC10_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC11_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC11_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ...)
 
#define FAKE_VOID_FUNC11_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC12_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC12_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ...)
 
#define FAKE_VOID_FUNC12_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC13_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC13_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ...)
 
#define FAKE_VOID_FUNC13_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC14_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC14_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ...)
 
#define FAKE_VOID_FUNC14_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC15_VARARG( FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC15_VARARG( FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ...)
 
#define FAKE_VOID_FUNC15_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC16_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC16_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ...)
 
#define FAKE_VOID_FUNC16_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC17_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC17_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ...)
 
#define FAKE_VOID_FUNC17_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC18_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC18_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ...)
 
#define FAKE_VOID_FUNC18_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC19_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC19_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ...)
 
#define FAKE_VOID_FUNC19_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ...)
 
#define DECLARE_FAKE_VOID_FUNC20_VARARG( FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ...)
 
#define DEFINE_FAKE_VOID_FUNC20_VARARG( FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ...)
 
#define FAKE_VOID_FUNC20_VARARG(FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC2_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC2_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ...)
 
#define FAKE_VALUE_FUNC2_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC3_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC3_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ...)
 
#define FAKE_VALUE_FUNC3_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC4_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC4_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ...)
 
#define FAKE_VALUE_FUNC4_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC5_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC5_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ...)
 
#define FAKE_VALUE_FUNC5_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC6_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC6_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ...)
 
#define FAKE_VALUE_FUNC6_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC7_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC7_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ...)
 
#define FAKE_VALUE_FUNC7_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC8_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC8_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ...)
 
#define FAKE_VALUE_FUNC8_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC9_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC9_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ...)
 
#define FAKE_VALUE_FUNC9_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC10_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC10_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ...)
 
#define FAKE_VALUE_FUNC10_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC11_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC11_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ...)
 
#define FAKE_VALUE_FUNC11_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC12_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC12_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ...)
 
#define FAKE_VALUE_FUNC12_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC13_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC13_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ...)
 
#define FAKE_VALUE_FUNC13_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC14_VARARG( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC14_VARARG( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ...)
 
#define FAKE_VALUE_FUNC14_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC15_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC15_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ...)
 
#define FAKE_VALUE_FUNC15_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC16_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC16_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ...)
 
#define FAKE_VALUE_FUNC16_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC17_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC17_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ...)
 
#define FAKE_VALUE_FUNC17_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC18_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC18_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ...)
 
#define FAKE_VALUE_FUNC18_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC19_VARARG( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC19_VARARG( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ...)
 
#define FAKE_VALUE_FUNC19_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ...)
 
#define DECLARE_FAKE_VALUE_FUNC20_VARARG( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ...)
 
#define DEFINE_FAKE_VALUE_FUNC20_VARARG( RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ...)
 
#define FAKE_VALUE_FUNC20_VARARG(RETURN_TYPE, FUNCNAME, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, ...)
 
#define EXPAND(x)
 
#define PP_NARG_MINUS2(...)
 
#define PP_NARG_MINUS2_(...)
 
#define PP_ARG_MINUS2_N(returnVal, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, N, ...)
 
#define PP_RSEQ_N_MINUS2()
 
#define PP_NARG_MINUS1(...)
 
#define PP_NARG_MINUS1_(...)
 
#define PP_ARG_MINUS1_N(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, N, ...)
 
#define PP_RSEQ_N_MINUS1()
 
#define FAKE_VALUE_FUNC(...)
 
#define FUNC_VALUE_(N, ...)
 
#define FUNC_VALUE_N(N, ...)
 
#define FAKE_VOID_FUNC(...)
 
#define FUNC_VOID_(N, ...)
 
#define FUNC_VOID_N(N, ...)
 
#define FAKE_VALUE_FUNC_VARARG(...)
 
#define FUNC_VALUE_VARARG_(N, ...)
 
#define FUNC_VALUE_VARARG_N(N, ...)
 
#define FAKE_VOID_FUNC_VARARG(...)
 
#define FUNC_VOID_VARARG_(N, ...)
 
#define FUNC_VOID_VARARG_N(N, ...)
 
#define DECLARE_FAKE_VALUE_FUNC(...)
 
#define DECLARE_FUNC_VALUE_(N, ...)
 
#define DECLARE_FUNC_VALUE_N(N, ...)
 
#define DECLARE_FAKE_VOID_FUNC(...)
 
#define DECLARE_FUNC_VOID_(N, ...)
 
#define DECLARE_FUNC_VOID_N(N, ...)
 
#define DECLARE_FAKE_VALUE_FUNC_VARARG(...)
 
#define DECLARE_FUNC_VALUE_VARARG_(N, ...)
 
#define DECLARE_FUNC_VALUE_VARARG_N(N, ...)
 
#define DECLARE_FAKE_VOID_FUNC_VARARG(...)
 
#define DECLARE_FUNC_VOID_VARARG_(N, ...)
 
#define DECLARE_FUNC_VOID_VARARG_N(N, ...)
 
#define DEFINE_FAKE_VALUE_FUNC(...)
 
#define DEFINE_FUNC_VALUE_(N, ...)
 
#define DEFINE_FUNC_VALUE_N(N, ...)
 
#define DEFINE_FAKE_VOID_FUNC(...)
 
#define DEFINE_FUNC_VOID_(N, ...)
 
#define DEFINE_FUNC_VOID_N(N, ...)
 
#define DEFINE_FAKE_VALUE_FUNC_VARARG(...)
 
#define DEFINE_FUNC_VALUE_VARARG_(N, ...)
 
#define DEFINE_FUNC_VALUE_VARARG_N(N, ...)
 
#define DEFINE_FAKE_VOID_FUNC_VARARG(...)
 
#define DEFINE_FUNC_VOID_VARARG_(N, ...)
 
#define DEFINE_FUNC_VOID_VARARG_N(N, ...)
 

Typedefs

typedef void(* fff_function_t) (void)
 

Variables

fff_globals_t fff
 

Macro Definition Documentation

◆ CUSTOM_FFF_FUNCTION_TEMPLATE

#define CUSTOM_FFF_FUNCTION_TEMPLATE ( RETURN,
FUNCNAME,
... )
Value:
RETURN (*FUNCNAME)(__VA_ARGS__)

◆ DECLARE_ALL_FUNC_COMMON

#define DECLARE_ALL_FUNC_COMMON
Value:
unsigned int call_count; \
unsigned int arg_history_len; \
unsigned int arg_histories_dropped;

◆ DECLARE_ARG

#define DECLARE_ARG ( type,
n,
FUNCNAME )
Value:
type arg##n##_val; \
type arg##n##_history[FFF_ARG_HISTORY_LEN];
#define FFF_ARG_HISTORY_LEN
Definition fff.h:34

◆ DECLARE_CUSTOM_FAKE_SEQ_VARIABLES

#define DECLARE_CUSTOM_FAKE_SEQ_VARIABLES
Value:
int custom_fake_seq_len; \
int custom_fake_seq_idx;

◆ DECLARE_FAKE_VALUE_FUNC

#define DECLARE_FAKE_VALUE_FUNC ( ...)
Value:
EXPAND(DECLARE_FUNC_VALUE_(PP_NARG_MINUS2(__VA_ARGS__), __VA_ARGS__))
#define DECLARE_FUNC_VALUE_(N,...)
Definition fff.h:8687
#define EXPAND(x)
Definition fff.h:8632
#define PP_NARG_MINUS2(...)
Definition fff.h:8634

◆ DECLARE_FAKE_VALUE_FUNC0

#define DECLARE_FAKE_VALUE_FUNC0 ( RETURN_TYPE,
FUNCNAME )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, void); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, void); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(void);
#define FFF_GCC_FUNCTION_ATTRIBUTES
Definition fff.h:40

◆ DECLARE_FAKE_VALUE_FUNC1

#define DECLARE_FAKE_VALUE_FUNC1 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0);

◆ DECLARE_FAKE_VALUE_FUNC10

#define DECLARE_FAKE_VALUE_FUNC10 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9);

◆ DECLARE_FAKE_VALUE_FUNC10_VARARG

#define DECLARE_FAKE_VALUE_FUNC10_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ...);

◆ DECLARE_FAKE_VALUE_FUNC11

#define DECLARE_FAKE_VALUE_FUNC11 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10);

◆ DECLARE_FAKE_VALUE_FUNC11_VARARG

#define DECLARE_FAKE_VALUE_FUNC11_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
...);

◆ DECLARE_FAKE_VALUE_FUNC12

#define DECLARE_FAKE_VALUE_FUNC12 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11);

◆ DECLARE_FAKE_VALUE_FUNC12_VARARG

#define DECLARE_FAKE_VALUE_FUNC12_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ...);

◆ DECLARE_FAKE_VALUE_FUNC13

#define DECLARE_FAKE_VALUE_FUNC13 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12);

◆ DECLARE_FAKE_VALUE_FUNC13_VARARG

#define DECLARE_FAKE_VALUE_FUNC13_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ...);

◆ DECLARE_FAKE_VALUE_FUNC14

#define DECLARE_FAKE_VALUE_FUNC14 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13);

◆ DECLARE_FAKE_VALUE_FUNC14_VARARG

#define DECLARE_FAKE_VALUE_FUNC14_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ...);

◆ DECLARE_FAKE_VALUE_FUNC15

#define DECLARE_FAKE_VALUE_FUNC15 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14);

◆ DECLARE_FAKE_VALUE_FUNC15_VARARG

#define DECLARE_FAKE_VALUE_FUNC15_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, ...);

◆ DECLARE_FAKE_VALUE_FUNC16

#define DECLARE_FAKE_VALUE_FUNC16 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15);

◆ DECLARE_FAKE_VALUE_FUNC16_VARARG

#define DECLARE_FAKE_VALUE_FUNC16_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ...);

◆ DECLARE_FAKE_VALUE_FUNC17

#define DECLARE_FAKE_VALUE_FUNC17 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16);

◆ DECLARE_FAKE_VALUE_FUNC17_VARARG

#define DECLARE_FAKE_VALUE_FUNC17_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ...);

◆ DECLARE_FAKE_VALUE_FUNC18

#define DECLARE_FAKE_VALUE_FUNC18 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17);

◆ DECLARE_FAKE_VALUE_FUNC18_VARARG

#define DECLARE_FAKE_VALUE_FUNC18_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ...);

◆ DECLARE_FAKE_VALUE_FUNC19

#define DECLARE_FAKE_VALUE_FUNC19 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ARG(ARG18_TYPE, 18, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18);

◆ DECLARE_FAKE_VALUE_FUNC19_VARARG

#define DECLARE_FAKE_VALUE_FUNC19_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, ...);

◆ DECLARE_FAKE_VALUE_FUNC2

#define DECLARE_FAKE_VALUE_FUNC2 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1);

◆ DECLARE_FAKE_VALUE_FUNC20

#define DECLARE_FAKE_VALUE_FUNC20 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE,
ARG19_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ARG(ARG18_TYPE, 18, FUNCNAME) \
DECLARE_ARG(ARG19_TYPE, 19, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE, ARG19_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE, ARG19_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18, ARG19_TYPE arg19);

◆ DECLARE_FAKE_VALUE_FUNC20_VARARG

#define DECLARE_FAKE_VALUE_FUNC20_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ARG(ARG18_TYPE, 18, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18, ...);

◆ DECLARE_FAKE_VALUE_FUNC2_VARARG

#define DECLARE_FAKE_VALUE_FUNC2_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ...);

◆ DECLARE_FAKE_VALUE_FUNC3

#define DECLARE_FAKE_VALUE_FUNC3 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2);

◆ DECLARE_FAKE_VALUE_FUNC3_VARARG

#define DECLARE_FAKE_VALUE_FUNC3_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ...);

◆ DECLARE_FAKE_VALUE_FUNC4

#define DECLARE_FAKE_VALUE_FUNC4 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2, ARG3_TYPE arg3);

◆ DECLARE_FAKE_VALUE_FUNC4_VARARG

#define DECLARE_FAKE_VALUE_FUNC4_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2, ...);

◆ DECLARE_FAKE_VALUE_FUNC5

#define DECLARE_FAKE_VALUE_FUNC5 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4);

◆ DECLARE_FAKE_VALUE_FUNC5_VARARG

#define DECLARE_FAKE_VALUE_FUNC5_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2, ARG3_TYPE arg3, ...);

◆ DECLARE_FAKE_VALUE_FUNC6

#define DECLARE_FAKE_VALUE_FUNC6 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2, ARG3_TYPE arg3, \
ARG4_TYPE arg4, ARG5_TYPE arg5);

◆ DECLARE_FAKE_VALUE_FUNC6_VARARG

#define DECLARE_FAKE_VALUE_FUNC6_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2, ARG3_TYPE arg3, \
ARG4_TYPE arg4, ...);

◆ DECLARE_FAKE_VALUE_FUNC7

#define DECLARE_FAKE_VALUE_FUNC7 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6);

◆ DECLARE_FAKE_VALUE_FUNC7_VARARG

#define DECLARE_FAKE_VALUE_FUNC7_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, \
ARG2_TYPE arg2, ARG3_TYPE arg3, \
ARG4_TYPE arg4, ARG5_TYPE arg5, ...);

◆ DECLARE_FAKE_VALUE_FUNC8

#define DECLARE_FAKE_VALUE_FUNC8 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7);

◆ DECLARE_FAKE_VALUE_FUNC8_VARARG

#define DECLARE_FAKE_VALUE_FUNC8_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ...);

◆ DECLARE_FAKE_VALUE_FUNC9

#define DECLARE_FAKE_VALUE_FUNC9 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8);

◆ DECLARE_FAKE_VALUE_FUNC9_VARARG

#define DECLARE_FAKE_VALUE_FUNC9_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_VALUE_FUNCTION_VARIABLES(RETURN_TYPE) \
DECLARE_RETURN_VALUE_HISTORY(RETURN_TYPE) \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, custom_fake, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN_TYPE, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ...);

◆ DECLARE_FAKE_VALUE_FUNC_VARARG

#define DECLARE_FAKE_VALUE_FUNC_VARARG ( ...)
Value:
EXPAND(DECLARE_FUNC_VALUE_VARARG_(PP_NARG_MINUS2(__VA_ARGS__), __VA_ARGS__))
#define DECLARE_FUNC_VALUE_VARARG_(N,...)
Definition fff.h:8701

◆ DECLARE_FAKE_VOID_FUNC

#define DECLARE_FAKE_VOID_FUNC ( ...)
Value:
EXPAND(DECLARE_FUNC_VOID_(PP_NARG_MINUS1(__VA_ARGS__), __VA_ARGS__))
#define DECLARE_FUNC_VOID_(N,...)
Definition fff.h:8694
#define PP_NARG_MINUS1(...)
Definition fff.h:8644

◆ DECLARE_FAKE_VOID_FUNC0

#define DECLARE_FAKE_VOID_FUNC0 ( FUNCNAME)
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, void); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, void); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(void);

◆ DECLARE_FAKE_VOID_FUNC1

#define DECLARE_FAKE_VOID_FUNC1 ( FUNCNAME,
ARG0_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0);

◆ DECLARE_FAKE_VOID_FUNC10

#define DECLARE_FAKE_VOID_FUNC10 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9);

◆ DECLARE_FAKE_VOID_FUNC10_VARARG

#define DECLARE_FAKE_VOID_FUNC10_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ...);

◆ DECLARE_FAKE_VOID_FUNC11

#define DECLARE_FAKE_VOID_FUNC11 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, \
ARG9_TYPE arg9, ARG10_TYPE arg10);

◆ DECLARE_FAKE_VOID_FUNC11_VARARG

#define DECLARE_FAKE_VOID_FUNC11_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, \
ARG9_TYPE arg9, ...);

◆ DECLARE_FAKE_VOID_FUNC12

#define DECLARE_FAKE_VOID_FUNC12 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11);

◆ DECLARE_FAKE_VOID_FUNC12_VARARG

#define DECLARE_FAKE_VOID_FUNC12_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, \
ARG9_TYPE arg9, ARG10_TYPE arg10, ...);

◆ DECLARE_FAKE_VOID_FUNC13

#define DECLARE_FAKE_VOID_FUNC13 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12);

◆ DECLARE_FAKE_VOID_FUNC13_VARARG

#define DECLARE_FAKE_VOID_FUNC13_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ...);

◆ DECLARE_FAKE_VOID_FUNC14

#define DECLARE_FAKE_VOID_FUNC14 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13);

◆ DECLARE_FAKE_VOID_FUNC14_VARARG

#define DECLARE_FAKE_VOID_FUNC14_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ...);

◆ DECLARE_FAKE_VOID_FUNC15

#define DECLARE_FAKE_VOID_FUNC15 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14);

◆ DECLARE_FAKE_VOID_FUNC15_VARARG

#define DECLARE_FAKE_VOID_FUNC15_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, ...);

◆ DECLARE_FAKE_VOID_FUNC16

#define DECLARE_FAKE_VOID_FUNC16 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15);

◆ DECLARE_FAKE_VOID_FUNC16_VARARG

#define DECLARE_FAKE_VOID_FUNC16_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ...);

◆ DECLARE_FAKE_VOID_FUNC17

#define DECLARE_FAKE_VOID_FUNC17 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16);

◆ DECLARE_FAKE_VOID_FUNC17_VARARG

#define DECLARE_FAKE_VOID_FUNC17_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ...);

◆ DECLARE_FAKE_VOID_FUNC18

#define DECLARE_FAKE_VOID_FUNC18 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE, ARG17_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17);

◆ DECLARE_FAKE_VOID_FUNC18_VARARG

#define DECLARE_FAKE_VOID_FUNC18_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ...);

◆ DECLARE_FAKE_VOID_FUNC19

#define DECLARE_FAKE_VOID_FUNC19 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ARG(ARG18_TYPE, 18, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18);

◆ DECLARE_FAKE_VOID_FUNC19_VARARG

#define DECLARE_FAKE_VOID_FUNC19_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, ...);

◆ DECLARE_FAKE_VOID_FUNC2

#define DECLARE_FAKE_VOID_FUNC2 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1);

◆ DECLARE_FAKE_VOID_FUNC20

#define DECLARE_FAKE_VOID_FUNC20 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE,
ARG19_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ARG(ARG18_TYPE, 18, FUNCNAME) \
DECLARE_ARG(ARG19_TYPE, 19, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, \
ARG19_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE, ARG19_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18, ARG19_TYPE arg19);

◆ DECLARE_FAKE_VOID_FUNC20_VARARG

#define DECLARE_FAKE_VOID_FUNC20_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ARG(ARG9_TYPE, 9, FUNCNAME) \
DECLARE_ARG(ARG10_TYPE, 10, FUNCNAME) \
DECLARE_ARG(ARG11_TYPE, 11, FUNCNAME) \
DECLARE_ARG(ARG12_TYPE, 12, FUNCNAME) \
DECLARE_ARG(ARG13_TYPE, 13, FUNCNAME) \
DECLARE_ARG(ARG14_TYPE, 14, FUNCNAME) \
DECLARE_ARG(ARG15_TYPE, 15, FUNCNAME) \
DECLARE_ARG(ARG16_TYPE, 16, FUNCNAME) \
DECLARE_ARG(ARG17_TYPE, 17, FUNCNAME) \
DECLARE_ARG(ARG18_TYPE, 18, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, ARG10_TYPE, \
ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, ARG14_TYPE, \
ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, ARG18_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE, ARG9_TYPE, \
ARG10_TYPE, ARG11_TYPE, ARG12_TYPE, ARG13_TYPE, \
ARG14_TYPE, ARG15_TYPE, ARG16_TYPE, ARG17_TYPE, \
ARG18_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18, ...);

◆ DECLARE_FAKE_VOID_FUNC2_VARARG

#define DECLARE_FAKE_VOID_FUNC2_VARARG ( FUNCNAME,
ARG0_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ...);

◆ DECLARE_FAKE_VOID_FUNC3

#define DECLARE_FAKE_VOID_FUNC3 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2);

◆ DECLARE_FAKE_VOID_FUNC3_VARARG

#define DECLARE_FAKE_VOID_FUNC3_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ...);

◆ DECLARE_FAKE_VOID_FUNC4

#define DECLARE_FAKE_VOID_FUNC4 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3);

◆ DECLARE_FAKE_VOID_FUNC4_VARARG

#define DECLARE_FAKE_VOID_FUNC4_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
...);

◆ DECLARE_FAKE_VOID_FUNC5

#define DECLARE_FAKE_VOID_FUNC5 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4);

◆ DECLARE_FAKE_VOID_FUNC5_VARARG

#define DECLARE_FAKE_VOID_FUNC5_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ...);

◆ DECLARE_FAKE_VOID_FUNC6

#define DECLARE_FAKE_VOID_FUNC6 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5);

◆ DECLARE_FAKE_VOID_FUNC6_VARARG

#define DECLARE_FAKE_VOID_FUNC6_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ...);

◆ DECLARE_FAKE_VOID_FUNC7

#define DECLARE_FAKE_VOID_FUNC7 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6);

◆ DECLARE_FAKE_VOID_FUNC7_VARARG

#define DECLARE_FAKE_VOID_FUNC7_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
...);

◆ DECLARE_FAKE_VOID_FUNC8

#define DECLARE_FAKE_VOID_FUNC8 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ARG7_TYPE arg7);

◆ DECLARE_FAKE_VOID_FUNC8_VARARG

#define DECLARE_FAKE_VOID_FUNC8_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ...);

◆ DECLARE_FAKE_VOID_FUNC9

#define DECLARE_FAKE_VOID_FUNC9 ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ARG(ARG8_TYPE, 8, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, ARG8_TYPE); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, ARG8_TYPE); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8);

◆ DECLARE_FAKE_VOID_FUNC9_VARARG

#define DECLARE_FAKE_VOID_FUNC9_VARARG ( FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
... )
Value:
typedef struct FUNCNAME##_Fake { \
DECLARE_ARG(ARG0_TYPE, 0, FUNCNAME) \
DECLARE_ARG(ARG1_TYPE, 1, FUNCNAME) \
DECLARE_ARG(ARG2_TYPE, 2, FUNCNAME) \
DECLARE_ARG(ARG3_TYPE, 3, FUNCNAME) \
DECLARE_ARG(ARG4_TYPE, 4, FUNCNAME) \
DECLARE_ARG(ARG5_TYPE, 5, FUNCNAME) \
DECLARE_ARG(ARG6_TYPE, 6, FUNCNAME) \
DECLARE_ARG(ARG7_TYPE, 7, FUNCNAME) \
DECLARE_ALL_FUNC_COMMON \
DECLARE_CUSTOM_FAKE_SEQ_VARIABLES \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, custom_fake, ARG0_TYPE, ARG1_TYPE, ARG2_TYPE, \
ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, ARG6_TYPE, \
ARG7_TYPE, va_list ap); \
CUSTOM_FFF_FUNCTION_TEMPLATE(void, *custom_fake_seq, ARG0_TYPE, ARG1_TYPE, \
ARG2_TYPE, ARG3_TYPE, ARG4_TYPE, ARG5_TYPE, \
ARG6_TYPE, ARG7_TYPE, va_list ap); \
} FUNCNAME##_Fake; \
extern FUNCNAME##_Fake FUNCNAME##_fake; \
void FUNCNAME##_reset(void); \
void FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, \
ARG3_TYPE arg3, ARG4_TYPE arg4, ARG5_TYPE arg5, \
ARG6_TYPE arg6, ARG7_TYPE arg7, ...);

◆ DECLARE_FAKE_VOID_FUNC_VARARG

#define DECLARE_FAKE_VOID_FUNC_VARARG ( ...)
Value:
EXPAND(DECLARE_FUNC_VOID_VARARG_(PP_NARG_MINUS1(__VA_ARGS__), __VA_ARGS__))
#define DECLARE_FUNC_VOID_VARARG_(N,...)
Definition fff.h:8708

◆ DECLARE_FUNC_VALUE_

#define DECLARE_FUNC_VALUE_ ( N,
... )
Value:
EXPAND(DECLARE_FUNC_VALUE_N(N, __VA_ARGS__))
#define DECLARE_FUNC_VALUE_N(N,...)
Definition fff.h:8689

◆ DECLARE_FUNC_VALUE_N

#define DECLARE_FUNC_VALUE_N ( N,
... )
Value:
#define DECLARE_FAKE_VALUE_FUNC(...)
Definition fff.h:8684

◆ DECLARE_FUNC_VALUE_VARARG_

#define DECLARE_FUNC_VALUE_VARARG_ ( N,
... )
Value:
#define DECLARE_FUNC_VALUE_VARARG_N(N,...)
Definition fff.h:8703

◆ DECLARE_FUNC_VALUE_VARARG_N

#define DECLARE_FUNC_VALUE_VARARG_N ( N,
... )
Value:
EXPAND(DECLARE_FAKE_VALUE_FUNC##N##_VARARG(__VA_ARGS__))

◆ DECLARE_FUNC_VOID_

#define DECLARE_FUNC_VOID_ ( N,
... )
Value:
EXPAND(DECLARE_FUNC_VOID_N(N, __VA_ARGS__))
#define DECLARE_FUNC_VOID_N(N,...)
Definition fff.h:8696

◆ DECLARE_FUNC_VOID_N

#define DECLARE_FUNC_VOID_N ( N,
... )
Value:
#define DECLARE_FAKE_VOID_FUNC(...)
Definition fff.h:8691

◆ DECLARE_FUNC_VOID_VARARG_

#define DECLARE_FUNC_VOID_VARARG_ ( N,
... )
Value:
#define DECLARE_FUNC_VOID_VARARG_N(N,...)
Definition fff.h:8710

◆ DECLARE_FUNC_VOID_VARARG_N

#define DECLARE_FUNC_VOID_VARARG_N ( N,
... )
Value:
EXPAND(DECLARE_FAKE_VOID_FUNC##N##_VARARG(__VA_ARGS__))

◆ DECLARE_RETURN_VALUE_HISTORY

#define DECLARE_RETURN_VALUE_HISTORY ( RETURN_TYPE)
Value:
RETURN_TYPE return_val_history[FFF_ARG_HISTORY_LEN];

◆ DECLARE_VALUE_FUNCTION_VARIABLES

#define DECLARE_VALUE_FUNCTION_VARIABLES ( RETURN_TYPE)
Value:
RETURN_TYPE return_val; \
int return_val_seq_len; \
int return_val_seq_idx; \
RETURN_TYPE *return_val_seq;

◆ DEFINE_FAKE_VALUE_FUNC

#define DEFINE_FAKE_VALUE_FUNC ( ...)
Value:
EXPAND(DEFINE_FUNC_VALUE_(PP_NARG_MINUS2(__VA_ARGS__), __VA_ARGS__))
#define DEFINE_FUNC_VALUE_(N,...)
Definition fff.h:8717

◆ DEFINE_FAKE_VALUE_FUNC0

#define DEFINE_FAKE_VALUE_FUNC0 ( RETURN_TYPE,
FUNCNAME )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(void) \
{ \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++](); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1](); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - \
1](); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake(); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)
#define ROOM_FOR_MORE_HISTORY(FUNCNAME)
Definition fff.h:74

◆ DEFINE_FAKE_VALUE_FUNC1

#define DEFINE_FAKE_VALUE_FUNC1 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0) \
{ \
SAVE_ARG(FUNCNAME, 0); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++](arg0); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1](arg0); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake(arg0); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC10

#define DEFINE_FAKE_VALUE_FUNC10 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, \
arg5, arg6, arg7, arg8, arg9); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC10_VARARG

#define DEFINE_FAKE_VALUE_FUNC10_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg8); \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, \
arg5, arg6, arg7, arg8, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg8); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg8); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC11

#define DEFINE_FAKE_VALUE_FUNC11 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC11_VARARG

#define DEFINE_FAKE_VALUE_FUNC11_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg9); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg9); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg9); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC12

#define DEFINE_FAKE_VALUE_FUNC12 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC12_VARARG

#define DEFINE_FAKE_VALUE_FUNC12_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg10); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg10); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg10); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC13

#define DEFINE_FAKE_VALUE_FUNC13 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC13_VARARG

#define DEFINE_FAKE_VALUE_FUNC13_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg11); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg11); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg11); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC14

#define DEFINE_FAKE_VALUE_FUNC14 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, \
arg5, arg6, arg7, arg8, arg9, \
arg10, arg11, arg12, arg13); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC14_VARARG

#define DEFINE_FAKE_VALUE_FUNC14_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg12); \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, \
arg5, arg6, arg7, arg8, arg9, \
arg10, arg11, arg12, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg12); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg12); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC15

#define DEFINE_FAKE_VALUE_FUNC15 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, arg14); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC15_VARARG

#define DEFINE_FAKE_VALUE_FUNC15_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg13); \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, \
arg5, arg6, arg7, arg8, arg9, \
arg10, arg11, arg12, arg13, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg13); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg13); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC16

#define DEFINE_FAKE_VALUE_FUNC16 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, arg14, arg15); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC16_VARARG

#define DEFINE_FAKE_VALUE_FUNC16_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg14); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg14); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg14); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, arg14, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC17

#define DEFINE_FAKE_VALUE_FUNC17 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
SAVE_ARG(FUNCNAME, 16); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
SAVE_ARG_HISTORY(FUNCNAME, 16); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15, arg16); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15, arg16); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, arg14, arg15, arg16); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC17_VARARG

#define DEFINE_FAKE_VALUE_FUNC17_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg15); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg15); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg15); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, arg14, arg15, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC18

#define DEFINE_FAKE_VALUE_FUNC18 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
SAVE_ARG(FUNCNAME, 16); \
SAVE_ARG(FUNCNAME, 17); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
SAVE_ARG_HISTORY(FUNCNAME, 16); \
SAVE_ARG_HISTORY(FUNCNAME, 17); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15, arg16, arg17); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15, arg16, arg17); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15, arg16, arg17); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC18_VARARG

#define DEFINE_FAKE_VALUE_FUNC18_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
SAVE_ARG(FUNCNAME, 16); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
SAVE_ARG_HISTORY(FUNCNAME, 16); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg16); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg16); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15, arg16, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg16); \
ret = FUNCNAME##_fake.custom_fake(arg0, arg1, arg2, arg3, arg4, arg5, \
arg6, arg7, arg8, arg9, arg10, arg11, \
arg12, arg13, arg14, arg15, arg16, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC19

#define DEFINE_FAKE_VALUE_FUNC19 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
SAVE_ARG(FUNCNAME, 16); \
SAVE_ARG(FUNCNAME, 17); \
SAVE_ARG(FUNCNAME, 18); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
SAVE_ARG_HISTORY(FUNCNAME, 16); \
SAVE_ARG_HISTORY(FUNCNAME, 17); \
SAVE_ARG_HISTORY(FUNCNAME, 18); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17, arg18); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17, arg18); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15, arg16, arg17, arg18); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC19_VARARG

#define DEFINE_FAKE_VALUE_FUNC19_VARARG ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
... )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, ...) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
SAVE_ARG(FUNCNAME, 16); \
SAVE_ARG(FUNCNAME, 17); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
SAVE_ARG_HISTORY(FUNCNAME, 16); \
SAVE_ARG_HISTORY(FUNCNAME, 17); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
va_list ap; \
va_start(ap, arg17); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
} else { \
va_list ap; \
va_start(ap, arg17); \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17, ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
va_end(ap); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, \
arg8, arg9, arg10, arg11, arg12, arg13, arg14, \
arg15, arg16, arg17, ap); \
} \
} \
if (FUNCNAME##_fake.custom_fake) { \
RETURN_TYPE ret; \
va_list ap; \
va_start(ap, arg17); \
ret = FUNCNAME##_fake.custom_fake( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, \
arg11, arg12, arg13, arg14, arg15, arg16, arg17, ap); \
va_end(ap); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC2

#define DEFINE_FAKE_VALUE_FUNC2 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME(ARG0_TYPE arg0, ARG1_TYPE arg1) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_len - 1](arg0, \
arg1); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake \
.custom_fake_seq[FUNCNAME##_fake.custom_fake_seq_len - 1]( \
arg0, arg1); \
} \
} \
if (FUNCNAME##_fake.custom_fake != NULL) { \
RETURN_TYPE ret = FUNCNAME##_fake.custom_fake(arg0, arg1); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
return FUNCNAME##_fake.custom_fake(arg0, arg1); \
} \
RETURN_FAKE_RESULT(FUNCNAME) \
} \
DEFINE_RESET_FUNCTION(FUNCNAME)

◆ DEFINE_FAKE_VALUE_FUNC20

#define DEFINE_FAKE_VALUE_FUNC20 ( RETURN_TYPE,
FUNCNAME,
ARG0_TYPE,
ARG1_TYPE,
ARG2_TYPE,
ARG3_TYPE,
ARG4_TYPE,
ARG5_TYPE,
ARG6_TYPE,
ARG7_TYPE,
ARG8_TYPE,
ARG9_TYPE,
ARG10_TYPE,
ARG11_TYPE,
ARG12_TYPE,
ARG13_TYPE,
ARG14_TYPE,
ARG15_TYPE,
ARG16_TYPE,
ARG17_TYPE,
ARG18_TYPE,
ARG19_TYPE )
Value:
FUNCNAME##_Fake FUNCNAME##_fake; \
RETURN_TYPE FFF_GCC_FUNCTION_ATTRIBUTES FUNCNAME( \
ARG0_TYPE arg0, ARG1_TYPE arg1, ARG2_TYPE arg2, ARG3_TYPE arg3, ARG4_TYPE arg4, \
ARG5_TYPE arg5, ARG6_TYPE arg6, ARG7_TYPE arg7, ARG8_TYPE arg8, ARG9_TYPE arg9, \
ARG10_TYPE arg10, ARG11_TYPE arg11, ARG12_TYPE arg12, ARG13_TYPE arg13, \
ARG14_TYPE arg14, ARG15_TYPE arg15, ARG16_TYPE arg16, ARG17_TYPE arg17, \
ARG18_TYPE arg18, ARG19_TYPE arg19) \
{ \
SAVE_ARG(FUNCNAME, 0); \
SAVE_ARG(FUNCNAME, 1); \
SAVE_ARG(FUNCNAME, 2); \
SAVE_ARG(FUNCNAME, 3); \
SAVE_ARG(FUNCNAME, 4); \
SAVE_ARG(FUNCNAME, 5); \
SAVE_ARG(FUNCNAME, 6); \
SAVE_ARG(FUNCNAME, 7); \
SAVE_ARG(FUNCNAME, 8); \
SAVE_ARG(FUNCNAME, 9); \
SAVE_ARG(FUNCNAME, 10); \
SAVE_ARG(FUNCNAME, 11); \
SAVE_ARG(FUNCNAME, 12); \
SAVE_ARG(FUNCNAME, 13); \
SAVE_ARG(FUNCNAME, 14); \
SAVE_ARG(FUNCNAME, 15); \
SAVE_ARG(FUNCNAME, 16); \
SAVE_ARG(FUNCNAME, 17); \
SAVE_ARG(FUNCNAME, 18); \
SAVE_ARG(FUNCNAME, 19); \
if (ROOM_FOR_MORE_HISTORY(FUNCNAME)) { \
SAVE_ARG_HISTORY(FUNCNAME, 0); \
SAVE_ARG_HISTORY(FUNCNAME, 1); \
SAVE_ARG_HISTORY(FUNCNAME, 2); \
SAVE_ARG_HISTORY(FUNCNAME, 3); \
SAVE_ARG_HISTORY(FUNCNAME, 4); \
SAVE_ARG_HISTORY(FUNCNAME, 5); \
SAVE_ARG_HISTORY(FUNCNAME, 6); \
SAVE_ARG_HISTORY(FUNCNAME, 7); \
SAVE_ARG_HISTORY(FUNCNAME, 8); \
SAVE_ARG_HISTORY(FUNCNAME, 9); \
SAVE_ARG_HISTORY(FUNCNAME, 10); \
SAVE_ARG_HISTORY(FUNCNAME, 11); \
SAVE_ARG_HISTORY(FUNCNAME, 12); \
SAVE_ARG_HISTORY(FUNCNAME, 13); \
SAVE_ARG_HISTORY(FUNCNAME, 14); \
SAVE_ARG_HISTORY(FUNCNAME, 15); \
SAVE_ARG_HISTORY(FUNCNAME, 16); \
SAVE_ARG_HISTORY(FUNCNAME, 17); \
SAVE_ARG_HISTORY(FUNCNAME, 18); \
SAVE_ARG_HISTORY(FUNCNAME, 19); \
} else { \
HISTORY_DROPPED(FUNCNAME); \
} \
INCREMENT_CALL_COUNT(FUNCNAME); \
REGISTER_CALL(FUNCNAME); \
if (FUNCNAME##_fake.custom_fake_seq_len) { /* a sequence of custom fakes */ \
if (FUNCNAME##_fake.custom_fake_seq_idx < \
FUNCNAME##_fake.custom_fake_seq_len) { \
RETURN_TYPE ret = \
FUNCNAME##_fake.custom_fake_seq \
[FUNCNAME##_fake.custom_fake_seq_idx++]( \
arg0, arg1, arg2, arg3, arg4, arg5, arg6, \
arg7, arg8, arg9, arg10, arg11, arg12, \
arg13, arg14, arg15, arg16, arg17, arg18, \
arg19); \
SAVE_RET_HISTORY(FUNCNAME, ret); \
return ret; \
} else { \
RETURN_TYPE ret = \