/*  DO NOT EDIT THIS FILE
    This file is generated by tools/genfaultinject.py
    Edit that not this */
#ifdef APSW_TESTFIXTURES

#ifndef APSW_FAULT_INJECT_INCLUDED

static long long
APSW_FaultInjectControl(const char *faultfunction, const char *filename, const char *funcname, int linenum, const char *args);


#define APSW_FAULT_INJECT_INCLUDED
#endif

#ifdef APSW_FAULT_CLEAR

#undef Call_PythonMethod
#undef Call_PythonMethodV
#undef MakeExistingException
#undef PyBool_FromLong
#undef PyBytes_FromStringAndSize
#undef PyCode_NewEmpty
#undef PyDict_New
#undef PyDict_SetItem
#undef PyDict_SetItemString
#undef PyErr_NewExceptionWithDoc
#undef PyFloat_AsDouble
#undef PyFloat_FromDouble
#undef PyFrame_New
#undef PyIter_Next
#undef PyList_Append
#undef PyList_GetItem
#undef PyList_New
#undef PyList_SetItem
#undef PyList_SetSlice
#undef PyList_Size
#undef PyLong_AsInt
#undef PyLong_AsLong
#undef PyLong_AsLongLong
#undef PyLong_FromLong
#undef PyLong_FromLongLong
#undef PyLong_FromVoidPtr
#undef PyMapping_GetItemString
#undef PyMem_Calloc
#undef PyMem_Realloc
#undef PyModule_AddIntConstant
#undef PyModule_AddObject
#undef PyModule_Create2
#undef PyNumber_Float
#undef PyNumber_Long
#undef PyObject_CallFunction
#undef PyObject_CallMethod
#undef PyObject_CallObject
#undef PyObject_GetAttrString
#undef PyObject_GetBuffer
#undef PyObject_GetIter
#undef PyObject_IsTrue
#undef PyObject_IsTrueStrict
#undef PyObject_SetAttrString
#undef PyObject_Str
#undef PySequence_Fast
#undef PySequence_GetItem
#undef PySequence_GetSlice
#undef PySequence_List
#undef PySequence_SetItem
#undef PySequence_Size
#undef PySet_Add
#undef PySet_New
#undef PyStructSequence_InitType2
#undef PyStructSequence_New
#undef PyStructSequence_NewType
#undef PyTuple_New
#undef PyType_Ready
#undef PyUnicode_AsUTF8
#undef PyUnicode_AsUTF8AndSize
#undef PyUnicode_FromFormat
#undef PyUnicode_FromString
#undef PyUnicode_FromStringAndSize
#undef PyUnicode_New
#undef PyWeakref_NewRef
#undef Py_BuildValue
#undef _PyBytes_Resize
#undef _PyObject_New
#undef allocfunccbinfo
#undef apsw_strdup
#undef connection_trace_and_exec
#undef convert_column_to_pyobject
#undef convert_value_to_pyobject
#undef convertutf8string
#undef get_window_function_context
#undef getfunctionargs
#undef sqlite3_aggregate_context
#undef sqlite3_autovacuum_pages
#undef sqlite3_backup_finish
#undef sqlite3_backup_init
#undef sqlite3_backup_step
#undef sqlite3_bind_blob
#undef sqlite3_bind_blob64
#undef sqlite3_bind_double
#undef sqlite3_bind_int
#undef sqlite3_bind_int64
#undef sqlite3_bind_null
#undef sqlite3_bind_pointer
#undef sqlite3_bind_text
#undef sqlite3_bind_text64
#undef sqlite3_bind_value
#undef sqlite3_bind_zeroblob
#undef sqlite3_bind_zeroblob64
#undef sqlite3_blob_open
#undef sqlite3_blob_read
#undef sqlite3_blob_reopen
#undef sqlite3_blob_write
#undef sqlite3_busy_handler
#undef sqlite3_busy_timeout
#undef sqlite3_clear_bindings
#undef sqlite3_close
#undef sqlite3_close_v2
#undef sqlite3_collation_needed
#undef sqlite3_column_name
#undef sqlite3_complete
#undef sqlite3_config
#undef sqlite3_create_collation
#undef sqlite3_create_collation_v2
#undef sqlite3_create_function
#undef sqlite3_create_function_v2
#undef sqlite3_create_module
#undef sqlite3_create_module_v2
#undef sqlite3_create_window_function
#undef sqlite3_db_cacheflush
#undef sqlite3_db_config
#undef sqlite3_db_status
#undef sqlite3_declare_vtab
#undef sqlite3_deserialize
#undef sqlite3_drop_modules
#undef sqlite3_enable_load_extension
#undef sqlite3_enable_shared_cache
#undef sqlite3_exec
#undef sqlite3_expanded_sql
#undef sqlite3_initialize
#undef sqlite3_load_extension
#undef sqlite3_malloc
#undef sqlite3_malloc64
#undef sqlite3_mprintf
#undef sqlite3_normalized_sql
#undef sqlite3_open
#undef sqlite3_open_v2
#undef sqlite3_overload_function
#undef sqlite3_prepare_v3
#undef sqlite3_realloc
#undef sqlite3_realloc64
#undef sqlite3_result_zeroblob64
#undef sqlite3_set_authorizer
#undef sqlite3_shutdown
#undef sqlite3_status64
#undef sqlite3_table_column_metadata
#undef sqlite3_threadsafe
#undef sqlite3_trace_v2
#undef sqlite3_vfs_register
#undef sqlite3_vfs_unregister
#undef sqlite3_vtab_config
#undef sqlite3_vtab_in_next
#undef sqlite3_vtab_rhs_value
#undef sqlite3_wal_autocheckpoint
#undef sqlite3_wal_checkpoint_v2

#else

#define Call_PythonMethod(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? Call_PythonMethod(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("Call_PythonMethod", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = Call_PythonMethod(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        Call_PythonMethod(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define Call_PythonMethodV(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? Call_PythonMethodV(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("Call_PythonMethodV", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = Call_PythonMethodV(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        Call_PythonMethodV(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define MakeExistingException(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? MakeExistingException(__VA_ARGS__) : 0;                                                      \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("MakeExistingException", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = MakeExistingException(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        MakeExistingException(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#define PyBool_FromLong(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PyBool_FromLong(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PyBool_FromLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PyBool_FromLong(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PyBool_FromLong(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PyBytes_FromStringAndSize(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? PyBytes_FromStringAndSize(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("PyBytes_FromStringAndSize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = PyBytes_FromStringAndSize(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        PyBytes_FromStringAndSize(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define PyCode_NewEmpty(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PyCode_NewEmpty(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PyCode_NewEmpty", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PyCode_NewEmpty(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PyCode_NewEmpty(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PyDict_New(...) \
({                                                                                                           \
    __auto_type _res = 0 ? PyDict_New(__VA_ARGS__) : 0;                                                      \
                                                                                                             \
    _res = (typeof (_res))APSW_FaultInjectControl("PyDict_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                             \
    if ((typeof (_res))0x1FACADE == _res)                                                                    \
       _res = PyDict_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                \
    {                                                                                                        \
        PyDict_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                            \
    }                                                                                                        \
    _res;                                                                                                    \
})
#define PyDict_SetItem(...) \
({                                                                                                               \
    __auto_type _res = 0 ? PyDict_SetItem(__VA_ARGS__) : 0;                                                      \
                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("PyDict_SetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                        \
       _res = PyDict_SetItem(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                    \
    {                                                                                                            \
        PyDict_SetItem(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                \
    }                                                                                                            \
    _res;                                                                                                        \
})
#define PyDict_SetItemString(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? PyDict_SetItemString(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("PyDict_SetItemString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = PyDict_SetItemString(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        PyDict_SetItemString(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define PyErr_NewExceptionWithDoc(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? PyErr_NewExceptionWithDoc(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("PyErr_NewExceptionWithDoc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = PyErr_NewExceptionWithDoc(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        PyErr_NewExceptionWithDoc(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define PyFloat_AsDouble(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? PyFloat_AsDouble(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("PyFloat_AsDouble", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = PyFloat_AsDouble(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        PyFloat_AsDouble(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define PyFloat_FromDouble(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? PyFloat_FromDouble(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("PyFloat_FromDouble", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = PyFloat_FromDouble(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        PyFloat_FromDouble(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define PyFrame_New(...) \
({                                                                                                            \
    __auto_type _res = 0 ? PyFrame_New(__VA_ARGS__) : 0;                                                      \
                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("PyFrame_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                     \
       _res = PyFrame_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                 \
    {                                                                                                         \
        PyFrame_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                             \
    }                                                                                                         \
    _res;                                                                                                     \
})
#define PyIter_Next(...) \
({                                                                                                            \
    __auto_type _res = 0 ? PyIter_Next(__VA_ARGS__) : 0;                                                      \
                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("PyIter_Next", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                     \
       _res = PyIter_Next(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                 \
    {                                                                                                         \
        PyIter_Next(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                             \
    }                                                                                                         \
    _res;                                                                                                     \
})
#define PyList_Append(...) \
({                                                                                                              \
    __auto_type _res = 0 ? PyList_Append(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("PyList_Append", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = PyList_Append(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        PyList_Append(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define PyList_GetItem(...) \
({                                                                                                               \
    __auto_type _res = 0 ? PyList_GetItem(__VA_ARGS__) : 0;                                                      \
                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("PyList_GetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                        \
       _res = PyList_GetItem(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                    \
    {                                                                                                            \
        PyList_GetItem(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                \
    }                                                                                                            \
    _res;                                                                                                        \
})
#define PyList_New(...) \
({                                                                                                           \
    __auto_type _res = 0 ? PyList_New(__VA_ARGS__) : 0;                                                      \
                                                                                                             \
    _res = (typeof (_res))APSW_FaultInjectControl("PyList_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                             \
    if ((typeof (_res))0x1FACADE == _res)                                                                    \
       _res = PyList_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                \
    {                                                                                                        \
        PyList_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                            \
    }                                                                                                        \
    _res;                                                                                                    \
})
#define PyList_SetItem(...) \
({                                                                                                               \
    __auto_type _res = 0 ? PyList_SetItem(__VA_ARGS__) : 0;                                                      \
                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("PyList_SetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                        \
       _res = PyList_SetItem(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                    \
    {                                                                                                            \
        PyList_SetItem(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                \
    }                                                                                                            \
    _res;                                                                                                        \
})
#define PyList_SetSlice(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PyList_SetSlice(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PyList_SetSlice", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PyList_SetSlice(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PyList_SetSlice(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PyList_Size(...) \
({                                                                                                            \
    __auto_type _res = 0 ? PyList_Size(__VA_ARGS__) : 0;                                                      \
                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("PyList_Size", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                     \
       _res = PyList_Size(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                 \
    {                                                                                                         \
        PyList_Size(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                             \
    }                                                                                                         \
    _res;                                                                                                     \
})
#define PyLong_AsInt(...) \
({                                                                                                             \
    __auto_type _res = 0 ? PyLong_AsInt(__VA_ARGS__) : 0;                                                      \
                                                                                                               \
    _res = (typeof (_res))APSW_FaultInjectControl("PyLong_AsInt", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                               \
    if ((typeof (_res))0x1FACADE == _res)                                                                      \
       _res = PyLong_AsInt(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                  \
    {                                                                                                          \
        PyLong_AsInt(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                              \
    }                                                                                                          \
    _res;                                                                                                      \
})
#define PyLong_AsLong(...) \
({                                                                                                              \
    __auto_type _res = 0 ? PyLong_AsLong(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("PyLong_AsLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = PyLong_AsLong(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        PyLong_AsLong(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define PyLong_AsLongLong(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? PyLong_AsLongLong(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("PyLong_AsLongLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = PyLong_AsLongLong(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        PyLong_AsLongLong(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define PyLong_FromLong(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PyLong_FromLong(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PyLong_FromLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PyLong_FromLong(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PyLong_FromLong(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PyLong_FromLongLong(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? PyLong_FromLongLong(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("PyLong_FromLongLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = PyLong_FromLongLong(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        PyLong_FromLongLong(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define PyLong_FromVoidPtr(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? PyLong_FromVoidPtr(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("PyLong_FromVoidPtr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = PyLong_FromVoidPtr(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        PyLong_FromVoidPtr(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define PyMapping_GetItemString(...) \
({                                                                                                                        \
    __auto_type _res = 0 ? PyMapping_GetItemString(__VA_ARGS__) : 0;                                                      \
                                                                                                                          \
    _res = (typeof (_res))APSW_FaultInjectControl("PyMapping_GetItemString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                          \
    if ((typeof (_res))0x1FACADE == _res)                                                                                 \
       _res = PyMapping_GetItemString(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                             \
    {                                                                                                                     \
        PyMapping_GetItemString(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                         \
    }                                                                                                                     \
    _res;                                                                                                                 \
})
#define PyMem_Calloc(...) \
({                                                                                                             \
    __auto_type _res = 0 ? PyMem_Calloc(__VA_ARGS__) : 0;                                                      \
                                                                                                               \
    _res = (typeof (_res))APSW_FaultInjectControl("PyMem_Calloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                               \
    if ((typeof (_res))0x1FACADE == _res)                                                                      \
       _res = PyMem_Calloc(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                  \
    {                                                                                                          \
        PyMem_Calloc(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                              \
    }                                                                                                          \
    _res;                                                                                                      \
})
#define PyMem_Realloc(...) \
({                                                                                                              \
    __auto_type _res = 0 ? PyMem_Realloc(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("PyMem_Realloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = PyMem_Realloc(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        PyMem_Realloc(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define PyModule_AddIntConstant(...) \
({                                                                                                                        \
    __auto_type _res = 0 ? PyModule_AddIntConstant(__VA_ARGS__) : 0;                                                      \
                                                                                                                          \
    _res = (typeof (_res))APSW_FaultInjectControl("PyModule_AddIntConstant", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                          \
    if ((typeof (_res))0x1FACADE == _res)                                                                                 \
       _res = PyModule_AddIntConstant(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                             \
    {                                                                                                                     \
        PyModule_AddIntConstant(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                         \
    }                                                                                                                     \
    _res;                                                                                                                 \
})
#define PyModule_AddObject(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? PyModule_AddObject(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("PyModule_AddObject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = PyModule_AddObject(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        PyModule_AddObject(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define PyModule_Create2(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? PyModule_Create2(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("PyModule_Create2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = PyModule_Create2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        PyModule_Create2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define PyNumber_Float(...) \
({                                                                                                               \
    __auto_type _res = 0 ? PyNumber_Float(__VA_ARGS__) : 0;                                                      \
                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("PyNumber_Float", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                        \
       _res = PyNumber_Float(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                    \
    {                                                                                                            \
        PyNumber_Float(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                \
    }                                                                                                            \
    _res;                                                                                                        \
})
#define PyNumber_Long(...) \
({                                                                                                              \
    __auto_type _res = 0 ? PyNumber_Long(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("PyNumber_Long", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = PyNumber_Long(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        PyNumber_Long(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#undef PyObject_CallFunction
#define PyObject_CallFunction(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? _PyObject_CallFunction_SizeT(__VA_ARGS__) : 0;                                               \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_CallFunction", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = _PyObject_CallFunction_SizeT(__VA_ARGS__);                                                                \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        _PyObject_CallFunction_SizeT(__VA_ARGS__);                                                                      \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#undef PyObject_CallMethod
#define PyObject_CallMethod(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? _PyObject_CallMethod_SizeT(__VA_ARGS__) : 0;                                               \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_CallMethod", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = _PyObject_CallMethod_SizeT(__VA_ARGS__);                                                                \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        _PyObject_CallMethod_SizeT(__VA_ARGS__);                                                                      \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define PyObject_CallObject(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? PyObject_CallObject(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_CallObject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = PyObject_CallObject(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        PyObject_CallObject(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define PyObject_GetAttrString(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? PyObject_GetAttrString(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_GetAttrString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = PyObject_GetAttrString(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        PyObject_GetAttrString(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define PyObject_GetBuffer(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? PyObject_GetBuffer(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_GetBuffer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = PyObject_GetBuffer(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        PyObject_GetBuffer(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define PyObject_GetIter(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? PyObject_GetIter(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_GetIter", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = PyObject_GetIter(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        PyObject_GetIter(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define PyObject_IsTrue(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PyObject_IsTrue(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_IsTrue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PyObject_IsTrue(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PyObject_IsTrue(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PyObject_IsTrueStrict(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? PyObject_IsTrueStrict(__VA_ARGS__) : 0;                                                      \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_IsTrueStrict", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = PyObject_IsTrueStrict(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        PyObject_IsTrueStrict(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#define PyObject_SetAttrString(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? PyObject_SetAttrString(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_SetAttrString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = PyObject_SetAttrString(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        PyObject_SetAttrString(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define PyObject_Str(...) \
({                                                                                                             \
    __auto_type _res = 0 ? PyObject_Str(__VA_ARGS__) : 0;                                                      \
                                                                                                               \
    _res = (typeof (_res))APSW_FaultInjectControl("PyObject_Str", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                               \
    if ((typeof (_res))0x1FACADE == _res)                                                                      \
       _res = PyObject_Str(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                  \
    {                                                                                                          \
        PyObject_Str(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                              \
    }                                                                                                          \
    _res;                                                                                                      \
})
#define PySequence_Fast(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PySequence_Fast(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PySequence_Fast", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PySequence_Fast(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PySequence_Fast(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PySequence_GetItem(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? PySequence_GetItem(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("PySequence_GetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = PySequence_GetItem(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        PySequence_GetItem(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define PySequence_GetSlice(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? PySequence_GetSlice(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("PySequence_GetSlice", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = PySequence_GetSlice(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        PySequence_GetSlice(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define PySequence_List(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PySequence_List(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PySequence_List", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PySequence_List(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PySequence_List(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PySequence_SetItem(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? PySequence_SetItem(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("PySequence_SetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = PySequence_SetItem(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        PySequence_SetItem(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define PySequence_Size(...) \
({                                                                                                                \
    __auto_type _res = 0 ? PySequence_Size(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("PySequence_Size", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = PySequence_Size(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        PySequence_Size(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define PySet_Add(...) \
({                                                                                                          \
    __auto_type _res = 0 ? PySet_Add(__VA_ARGS__) : 0;                                                      \
                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("PySet_Add", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                   \
       _res = PySet_Add(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                               \
    {                                                                                                       \
        PySet_Add(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                           \
    }                                                                                                       \
    _res;                                                                                                   \
})
#define PySet_New(...) \
({                                                                                                          \
    __auto_type _res = 0 ? PySet_New(__VA_ARGS__) : 0;                                                      \
                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("PySet_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                   \
       _res = PySet_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                               \
    {                                                                                                       \
        PySet_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                           \
    }                                                                                                       \
    _res;                                                                                                   \
})
#define PyStructSequence_InitType2(...) \
({                                                                                                                           \
    __auto_type _res = 0 ? PyStructSequence_InitType2(__VA_ARGS__) : 0;                                                      \
                                                                                                                             \
    _res = (typeof (_res))APSW_FaultInjectControl("PyStructSequence_InitType2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                             \
    if ((typeof (_res))0x1FACADE == _res)                                                                                    \
       _res = PyStructSequence_InitType2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                \
    {                                                                                                                        \
        PyStructSequence_InitType2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                            \
    }                                                                                                                        \
    _res;                                                                                                                    \
})
#define PyStructSequence_New(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? PyStructSequence_New(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("PyStructSequence_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = PyStructSequence_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        PyStructSequence_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define PyStructSequence_NewType(...) \
({                                                                                                                         \
    __auto_type _res = 0 ? PyStructSequence_NewType(__VA_ARGS__) : 0;                                                      \
                                                                                                                           \
    _res = (typeof (_res))APSW_FaultInjectControl("PyStructSequence_NewType", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                           \
    if ((typeof (_res))0x1FACADE == _res)                                                                                  \
       _res = PyStructSequence_NewType(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                              \
    {                                                                                                                      \
        PyStructSequence_NewType(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                          \
    }                                                                                                                      \
    _res;                                                                                                                  \
})
#define PyTuple_New(...) \
({                                                                                                            \
    __auto_type _res = 0 ? PyTuple_New(__VA_ARGS__) : 0;                                                      \
                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("PyTuple_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                     \
       _res = PyTuple_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                 \
    {                                                                                                         \
        PyTuple_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                             \
    }                                                                                                         \
    _res;                                                                                                     \
})
#define PyType_Ready(...) \
({                                                                                                             \
    __auto_type _res = 0 ? PyType_Ready(__VA_ARGS__) : 0;                                                      \
                                                                                                               \
    _res = (typeof (_res))APSW_FaultInjectControl("PyType_Ready", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                               \
    if ((typeof (_res))0x1FACADE == _res)                                                                      \
       _res = PyType_Ready(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                  \
    {                                                                                                          \
        PyType_Ready(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                              \
    }                                                                                                          \
    _res;                                                                                                      \
})
#define PyUnicode_AsUTF8(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? PyUnicode_AsUTF8(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("PyUnicode_AsUTF8", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = PyUnicode_AsUTF8(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        PyUnicode_AsUTF8(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define PyUnicode_AsUTF8AndSize(...) \
({                                                                                                                        \
    __auto_type _res = 0 ? PyUnicode_AsUTF8AndSize(__VA_ARGS__) : 0;                                                      \
                                                                                                                          \
    _res = (typeof (_res))APSW_FaultInjectControl("PyUnicode_AsUTF8AndSize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                          \
    if ((typeof (_res))0x1FACADE == _res)                                                                                 \
       _res = PyUnicode_AsUTF8AndSize(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                             \
    {                                                                                                                     \
        PyUnicode_AsUTF8AndSize(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                         \
    }                                                                                                                     \
    _res;                                                                                                                 \
})
#define PyUnicode_FromFormat(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? PyUnicode_FromFormat(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("PyUnicode_FromFormat", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = PyUnicode_FromFormat(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        PyUnicode_FromFormat(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define PyUnicode_FromString(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? PyUnicode_FromString(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("PyUnicode_FromString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = PyUnicode_FromString(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        PyUnicode_FromString(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define PyUnicode_FromStringAndSize(...) \
({                                                                                                                            \
    __auto_type _res = 0 ? PyUnicode_FromStringAndSize(__VA_ARGS__) : 0;                                                      \
                                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("PyUnicode_FromStringAndSize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                                     \
       _res = PyUnicode_FromStringAndSize(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                 \
    {                                                                                                                         \
        PyUnicode_FromStringAndSize(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                             \
    }                                                                                                                         \
    _res;                                                                                                                     \
})
#define PyUnicode_New(...) \
({                                                                                                              \
    __auto_type _res = 0 ? PyUnicode_New(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("PyUnicode_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = PyUnicode_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        PyUnicode_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define PyWeakref_NewRef(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? PyWeakref_NewRef(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("PyWeakref_NewRef", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = PyWeakref_NewRef(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        PyWeakref_NewRef(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#undef Py_BuildValue
#define Py_BuildValue(...) \
({                                                                                                              \
    __auto_type _res = 0 ? _Py_BuildValue_SizeT(__VA_ARGS__) : 0;                                               \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("Py_BuildValue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = _Py_BuildValue_SizeT(__VA_ARGS__);                                                                \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        _Py_BuildValue_SizeT(__VA_ARGS__);                                                                      \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define _PyBytes_Resize(...) \
({                                                                                                                \
    __auto_type _res = 0 ? _PyBytes_Resize(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("_PyBytes_Resize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = _PyBytes_Resize(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        _PyBytes_Resize(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define _PyObject_New(...) \
({                                                                                                              \
    __auto_type _res = 0 ? _PyObject_New(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("_PyObject_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = _PyObject_New(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        _PyObject_New(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define allocfunccbinfo(...) \
({                                                                                                                \
    __auto_type _res = 0 ? allocfunccbinfo(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("allocfunccbinfo", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = allocfunccbinfo(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        allocfunccbinfo(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define apsw_strdup(...) \
({                                                                                                            \
    __auto_type _res = 0 ? apsw_strdup(__VA_ARGS__) : 0;                                                      \
                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("apsw_strdup", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                     \
       _res = apsw_strdup(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                 \
    {                                                                                                         \
        apsw_strdup(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                             \
    }                                                                                                         \
    _res;                                                                                                     \
})
#define connection_trace_and_exec(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? connection_trace_and_exec(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("connection_trace_and_exec", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = connection_trace_and_exec(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        connection_trace_and_exec(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define convert_column_to_pyobject(...) \
({                                                                                                                           \
    __auto_type _res = 0 ? convert_column_to_pyobject(__VA_ARGS__) : 0;                                                      \
                                                                                                                             \
    _res = (typeof (_res))APSW_FaultInjectControl("convert_column_to_pyobject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                             \
    if ((typeof (_res))0x1FACADE == _res)                                                                                    \
       _res = convert_column_to_pyobject(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                \
    {                                                                                                                        \
        convert_column_to_pyobject(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                            \
    }                                                                                                                        \
    _res;                                                                                                                    \
})
#define convert_value_to_pyobject(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? convert_value_to_pyobject(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("convert_value_to_pyobject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = convert_value_to_pyobject(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        convert_value_to_pyobject(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define convertutf8string(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? convertutf8string(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("convertutf8string", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = convertutf8string(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        convertutf8string(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define get_window_function_context(...) \
({                                                                                                                            \
    __auto_type _res = 0 ? get_window_function_context(__VA_ARGS__) : 0;                                                      \
                                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("get_window_function_context", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                                     \
       _res = get_window_function_context(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                 \
    {                                                                                                                         \
        get_window_function_context(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                             \
    }                                                                                                                         \
    _res;                                                                                                                     \
})
#define getfunctionargs(...) \
({                                                                                                                \
    __auto_type _res = 0 ? getfunctionargs(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("getfunctionargs", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = getfunctionargs(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        getfunctionargs(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define sqlite3_aggregate_context(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? sqlite3_aggregate_context(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_aggregate_context", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = sqlite3_aggregate_context(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        sqlite3_aggregate_context(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define sqlite3_autovacuum_pages(...) \
({                                                                                                                         \
    __auto_type _res = 0 ? sqlite3_autovacuum_pages(__VA_ARGS__) : 0;                                                      \
                                                                                                                           \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_autovacuum_pages", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                           \
    if ((typeof (_res))0x1FACADE == _res)                                                                                  \
       _res = sqlite3_autovacuum_pages(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                              \
    {                                                                                                                      \
        sqlite3_autovacuum_pages(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                          \
    }                                                                                                                      \
    _res;                                                                                                                  \
})
#define sqlite3_backup_finish(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? sqlite3_backup_finish(__VA_ARGS__) : 0;                                                      \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_backup_finish", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = sqlite3_backup_finish(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        sqlite3_backup_finish(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#define sqlite3_backup_init(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_backup_init(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_backup_init", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_backup_init(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_backup_init(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_backup_step(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_backup_step(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_backup_step", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_backup_step(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_backup_step(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_bind_blob(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_bind_blob(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_blob", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_bind_blob(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_bind_blob(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_bind_blob64(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_bind_blob64(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_blob64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_bind_blob64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_bind_blob64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_bind_double(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_bind_double(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_double", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_bind_double(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_bind_double(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_bind_int(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_bind_int(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_int", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_bind_int(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_bind_int(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_bind_int64(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? sqlite3_bind_int64(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_int64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = sqlite3_bind_int64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        sqlite3_bind_int64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define sqlite3_bind_null(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_bind_null(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_null", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_bind_null(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_bind_null(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_bind_pointer(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_bind_pointer(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_pointer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_bind_pointer(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_bind_pointer(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_bind_text(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_bind_text(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_text", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_bind_text(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_bind_text(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_bind_text64(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_bind_text64(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_text64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_bind_text64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_bind_text64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_bind_value(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? sqlite3_bind_value(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_value", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = sqlite3_bind_value(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        sqlite3_bind_value(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define sqlite3_bind_zeroblob(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? sqlite3_bind_zeroblob(__VA_ARGS__) : 0;                                                      \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_zeroblob", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = sqlite3_bind_zeroblob(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        sqlite3_bind_zeroblob(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#define sqlite3_bind_zeroblob64(...) \
({                                                                                                                        \
    __auto_type _res = 0 ? sqlite3_bind_zeroblob64(__VA_ARGS__) : 0;                                                      \
                                                                                                                          \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_bind_zeroblob64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                          \
    if ((typeof (_res))0x1FACADE == _res)                                                                                 \
       _res = sqlite3_bind_zeroblob64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                             \
    {                                                                                                                     \
        sqlite3_bind_zeroblob64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                         \
    }                                                                                                                     \
    _res;                                                                                                                 \
})
#define sqlite3_blob_open(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_blob_open(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_blob_open", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_blob_open(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_blob_open(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_blob_read(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_blob_read(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_blob_read", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_blob_read(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_blob_read(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_blob_reopen(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_blob_reopen(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_blob_reopen", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_blob_reopen(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_blob_reopen(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_blob_write(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? sqlite3_blob_write(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_blob_write", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = sqlite3_blob_write(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        sqlite3_blob_write(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define sqlite3_busy_handler(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_busy_handler(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_busy_handler", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_busy_handler(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_busy_handler(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_busy_timeout(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_busy_timeout(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_busy_timeout", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_busy_timeout(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_busy_timeout(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_clear_bindings(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? sqlite3_clear_bindings(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_clear_bindings", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = sqlite3_clear_bindings(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        sqlite3_clear_bindings(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define sqlite3_close(...) \
({                                                                                                              \
    __auto_type _res = 0 ? sqlite3_close(__VA_ARGS__) : 0;                                                      \
                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_close", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                       \
       _res = sqlite3_close(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                   \
    {                                                                                                           \
        sqlite3_close(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                               \
    }                                                                                                           \
    _res;                                                                                                       \
})
#define sqlite3_close_v2(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_close_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_close_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_close_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_close_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_collation_needed(...) \
({                                                                                                                         \
    __auto_type _res = 0 ? sqlite3_collation_needed(__VA_ARGS__) : 0;                                                      \
                                                                                                                           \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_collation_needed", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                           \
    if ((typeof (_res))0x1FACADE == _res)                                                                                  \
       _res = sqlite3_collation_needed(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                              \
    {                                                                                                                      \
        sqlite3_collation_needed(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                          \
    }                                                                                                                      \
    _res;                                                                                                                  \
})
#define sqlite3_column_name(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_column_name(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_column_name", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_column_name(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_column_name(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_complete(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_complete(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_complete", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_complete(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_complete(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_config(...) \
({                                                                                                               \
    __auto_type _res = 0 ? sqlite3_config(__VA_ARGS__) : 0;                                                      \
                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                        \
       _res = sqlite3_config(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                    \
    {                                                                                                            \
        sqlite3_config(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                \
    }                                                                                                            \
    _res;                                                                                                        \
})
#define sqlite3_create_collation(...) \
({                                                                                                                         \
    __auto_type _res = 0 ? sqlite3_create_collation(__VA_ARGS__) : 0;                                                      \
                                                                                                                           \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_collation", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                           \
    if ((typeof (_res))0x1FACADE == _res)                                                                                  \
       _res = sqlite3_create_collation(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                              \
    {                                                                                                                      \
        sqlite3_create_collation(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                          \
    }                                                                                                                      \
    _res;                                                                                                                  \
})
#define sqlite3_create_collation_v2(...) \
({                                                                                                                            \
    __auto_type _res = 0 ? sqlite3_create_collation_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_collation_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                                     \
       _res = sqlite3_create_collation_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                 \
    {                                                                                                                         \
        sqlite3_create_collation_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                             \
    }                                                                                                                         \
    _res;                                                                                                                     \
})
#define sqlite3_create_function(...) \
({                                                                                                                        \
    __auto_type _res = 0 ? sqlite3_create_function(__VA_ARGS__) : 0;                                                      \
                                                                                                                          \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_function", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                          \
    if ((typeof (_res))0x1FACADE == _res)                                                                                 \
       _res = sqlite3_create_function(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                             \
    {                                                                                                                     \
        sqlite3_create_function(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                         \
    }                                                                                                                     \
    _res;                                                                                                                 \
})
#define sqlite3_create_function_v2(...) \
({                                                                                                                           \
    __auto_type _res = 0 ? sqlite3_create_function_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                             \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_function_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                             \
    if ((typeof (_res))0x1FACADE == _res)                                                                                    \
       _res = sqlite3_create_function_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                \
    {                                                                                                                        \
        sqlite3_create_function_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                            \
    }                                                                                                                        \
    _res;                                                                                                                    \
})
#define sqlite3_create_module(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? sqlite3_create_module(__VA_ARGS__) : 0;                                                      \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_module", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = sqlite3_create_module(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        sqlite3_create_module(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#define sqlite3_create_module_v2(...) \
({                                                                                                                         \
    __auto_type _res = 0 ? sqlite3_create_module_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                           \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_module_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                           \
    if ((typeof (_res))0x1FACADE == _res)                                                                                  \
       _res = sqlite3_create_module_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                              \
    {                                                                                                                      \
        sqlite3_create_module_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                          \
    }                                                                                                                      \
    _res;                                                                                                                  \
})
#define sqlite3_create_window_function(...) \
({                                                                                                                               \
    __auto_type _res = 0 ? sqlite3_create_window_function(__VA_ARGS__) : 0;                                                      \
                                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_create_window_function", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                                        \
       _res = sqlite3_create_window_function(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                    \
    {                                                                                                                            \
        sqlite3_create_window_function(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                                \
    }                                                                                                                            \
    _res;                                                                                                                        \
})
#define sqlite3_db_cacheflush(...) \
({                                                                                                                      \
    __auto_type _res = 0 ? sqlite3_db_cacheflush(__VA_ARGS__) : 0;                                                      \
                                                                                                                        \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_db_cacheflush", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                        \
    if ((typeof (_res))0x1FACADE == _res)                                                                               \
       _res = sqlite3_db_cacheflush(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                           \
    {                                                                                                                   \
        sqlite3_db_cacheflush(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                       \
    }                                                                                                                   \
    _res;                                                                                                               \
})
#define sqlite3_db_config(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_db_config(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_db_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_db_config(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_db_config(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_db_status(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_db_status(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_db_status", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_db_status(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_db_status(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_declare_vtab(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_declare_vtab(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_declare_vtab", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_declare_vtab(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_declare_vtab(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_deserialize(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_deserialize(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_deserialize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_deserialize(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_deserialize(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_drop_modules(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_drop_modules(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_drop_modules", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_drop_modules(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_drop_modules(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_enable_load_extension(...) \
({                                                                                                                              \
    __auto_type _res = 0 ? sqlite3_enable_load_extension(__VA_ARGS__) : 0;                                                      \
                                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_enable_load_extension", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                                       \
       _res = sqlite3_enable_load_extension(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                   \
    {                                                                                                                           \
        sqlite3_enable_load_extension(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                               \
    }                                                                                                                           \
    _res;                                                                                                                       \
})
#define sqlite3_enable_shared_cache(...) \
({                                                                                                                            \
    __auto_type _res = 0 ? sqlite3_enable_shared_cache(__VA_ARGS__) : 0;                                                      \
                                                                                                                              \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_enable_shared_cache", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                              \
    if ((typeof (_res))0x1FACADE == _res)                                                                                     \
       _res = sqlite3_enable_shared_cache(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                 \
    {                                                                                                                         \
        sqlite3_enable_shared_cache(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                             \
    }                                                                                                                         \
    _res;                                                                                                                     \
})
#define sqlite3_exec(...) \
({                                                                                                             \
    __auto_type _res = 0 ? sqlite3_exec(__VA_ARGS__) : 0;                                                      \
                                                                                                               \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_exec", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                               \
    if ((typeof (_res))0x1FACADE == _res)                                                                      \
       _res = sqlite3_exec(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                  \
    {                                                                                                          \
        sqlite3_exec(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                              \
    }                                                                                                          \
    _res;                                                                                                      \
})
#define sqlite3_expanded_sql(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_expanded_sql(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_expanded_sql", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_expanded_sql(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_expanded_sql(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_initialize(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? sqlite3_initialize(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_initialize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = sqlite3_initialize(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        sqlite3_initialize(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define sqlite3_load_extension(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? sqlite3_load_extension(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_load_extension", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = sqlite3_load_extension(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        sqlite3_load_extension(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define sqlite3_malloc(...) \
({                                                                                                               \
    __auto_type _res = 0 ? sqlite3_malloc(__VA_ARGS__) : 0;                                                      \
                                                                                                                 \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_malloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                 \
    if ((typeof (_res))0x1FACADE == _res)                                                                        \
       _res = sqlite3_malloc(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                    \
    {                                                                                                            \
        sqlite3_malloc(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                \
    }                                                                                                            \
    _res;                                                                                                        \
})
#define sqlite3_malloc64(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_malloc64(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_malloc64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_malloc64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_malloc64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_mprintf(...) \
({                                                                                                                \
    __auto_type _res = 0 ? sqlite3_mprintf(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_mprintf", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = sqlite3_mprintf(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        sqlite3_mprintf(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define sqlite3_normalized_sql(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? sqlite3_normalized_sql(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_normalized_sql", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = sqlite3_normalized_sql(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        sqlite3_normalized_sql(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define sqlite3_open(...) \
({                                                                                                             \
    __auto_type _res = 0 ? sqlite3_open(__VA_ARGS__) : 0;                                                      \
                                                                                                               \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_open", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                               \
    if ((typeof (_res))0x1FACADE == _res)                                                                      \
       _res = sqlite3_open(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                  \
    {                                                                                                          \
        sqlite3_open(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                              \
    }                                                                                                          \
    _res;                                                                                                      \
})
#define sqlite3_open_v2(...) \
({                                                                                                                \
    __auto_type _res = 0 ? sqlite3_open_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_open_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = sqlite3_open_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        sqlite3_open_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define sqlite3_overload_function(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? sqlite3_overload_function(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_overload_function", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = sqlite3_overload_function(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        sqlite3_overload_function(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define sqlite3_prepare_v3(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? sqlite3_prepare_v3(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_prepare_v3", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = sqlite3_prepare_v3(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        sqlite3_prepare_v3(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define sqlite3_realloc(...) \
({                                                                                                                \
    __auto_type _res = 0 ? sqlite3_realloc(__VA_ARGS__) : 0;                                                      \
                                                                                                                  \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_realloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                  \
    if ((typeof (_res))0x1FACADE == _res)                                                                         \
       _res = sqlite3_realloc(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                     \
    {                                                                                                             \
        sqlite3_realloc(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                 \
    }                                                                                                             \
    _res;                                                                                                         \
})
#define sqlite3_realloc64(...) \
({                                                                                                                  \
    __auto_type _res = 0 ? sqlite3_realloc64(__VA_ARGS__) : 0;                                                      \
                                                                                                                    \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_realloc64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                    \
    if ((typeof (_res))0x1FACADE == _res)                                                                           \
       _res = sqlite3_realloc64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                       \
    {                                                                                                               \
        sqlite3_realloc64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                   \
    }                                                                                                               \
    _res;                                                                                                           \
})
#define sqlite3_result_zeroblob64(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? sqlite3_result_zeroblob64(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_result_zeroblob64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = sqlite3_result_zeroblob64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        sqlite3_result_zeroblob64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#define sqlite3_set_authorizer(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? sqlite3_set_authorizer(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_set_authorizer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = sqlite3_set_authorizer(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        sqlite3_set_authorizer(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define sqlite3_shutdown(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_shutdown(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_shutdown", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_shutdown(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_shutdown(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_status64(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_status64(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_status64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_status64(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_status64(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_table_column_metadata(...) \
({                                                                                                                              \
    __auto_type _res = 0 ? sqlite3_table_column_metadata(__VA_ARGS__) : 0;                                                      \
                                                                                                                                \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_table_column_metadata", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                \
    if ((typeof (_res))0x1FACADE == _res)                                                                                       \
       _res = sqlite3_table_column_metadata(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                   \
    {                                                                                                                           \
        sqlite3_table_column_metadata(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                               \
    }                                                                                                                           \
    _res;                                                                                                                       \
})
#define sqlite3_threadsafe(...) \
({                                                                                                                   \
    __auto_type _res = 0 ? sqlite3_threadsafe(__VA_ARGS__) : 0;                                                      \
                                                                                                                     \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_threadsafe", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                     \
    if ((typeof (_res))0x1FACADE == _res)                                                                            \
       _res = sqlite3_threadsafe(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                        \
    {                                                                                                                \
        sqlite3_threadsafe(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                    \
    }                                                                                                                \
    _res;                                                                                                            \
})
#define sqlite3_trace_v2(...) \
({                                                                                                                 \
    __auto_type _res = 0 ? sqlite3_trace_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                   \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_trace_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                   \
    if ((typeof (_res))0x1FACADE == _res)                                                                          \
       _res = sqlite3_trace_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                      \
    {                                                                                                              \
        sqlite3_trace_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                  \
    }                                                                                                              \
    _res;                                                                                                          \
})
#define sqlite3_vfs_register(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_vfs_register(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_vfs_register", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_vfs_register(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_vfs_register(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_vfs_unregister(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? sqlite3_vfs_unregister(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_vfs_unregister", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = sqlite3_vfs_unregister(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        sqlite3_vfs_unregister(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define sqlite3_vtab_config(...) \
({                                                                                                                    \
    __auto_type _res = 0 ? sqlite3_vtab_config(__VA_ARGS__) : 0;                                                      \
                                                                                                                      \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_vtab_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                      \
    if ((typeof (_res))0x1FACADE == _res)                                                                             \
       _res = sqlite3_vtab_config(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                         \
    {                                                                                                                 \
        sqlite3_vtab_config(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                     \
    }                                                                                                                 \
    _res;                                                                                                             \
})
#define sqlite3_vtab_in_next(...) \
({                                                                                                                     \
    __auto_type _res = 0 ? sqlite3_vtab_in_next(__VA_ARGS__) : 0;                                                      \
                                                                                                                       \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_vtab_in_next", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                       \
    if ((typeof (_res))0x1FACADE == _res)                                                                              \
       _res = sqlite3_vtab_in_next(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                          \
    {                                                                                                                  \
        sqlite3_vtab_in_next(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                      \
    }                                                                                                                  \
    _res;                                                                                                              \
})
#define sqlite3_vtab_rhs_value(...) \
({                                                                                                                       \
    __auto_type _res = 0 ? sqlite3_vtab_rhs_value(__VA_ARGS__) : 0;                                                      \
                                                                                                                         \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_vtab_rhs_value", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                         \
    if ((typeof (_res))0x1FACADE == _res)                                                                                \
       _res = sqlite3_vtab_rhs_value(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                            \
    {                                                                                                                    \
        sqlite3_vtab_rhs_value(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                        \
    }                                                                                                                    \
    _res;                                                                                                                \
})
#define sqlite3_wal_autocheckpoint(...) \
({                                                                                                                           \
    __auto_type _res = 0 ? sqlite3_wal_autocheckpoint(__VA_ARGS__) : 0;                                                      \
                                                                                                                             \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_wal_autocheckpoint", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                             \
    if ((typeof (_res))0x1FACADE == _res)                                                                                    \
       _res = sqlite3_wal_autocheckpoint(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                                \
    {                                                                                                                        \
        sqlite3_wal_autocheckpoint(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                            \
    }                                                                                                                        \
    _res;                                                                                                                    \
})
#define sqlite3_wal_checkpoint_v2(...) \
({                                                                                                                          \
    __auto_type _res = 0 ? sqlite3_wal_checkpoint_v2(__VA_ARGS__) : 0;                                                      \
                                                                                                                            \
    _res = (typeof (_res))APSW_FaultInjectControl("sqlite3_wal_checkpoint_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                            \
    if ((typeof (_res))0x1FACADE == _res)                                                                                   \
       _res = sqlite3_wal_checkpoint_v2(__VA_ARGS__);                                                                       \
    else if ((typeof(_res))0x2FACADE == _res)                                                                               \
    {                                                                                                                       \
        sqlite3_wal_checkpoint_v2(__VA_ARGS__);                                                                             \
        _res = (typeof (_res))18;                                                                                           \
    }                                                                                                                       \
    _res;                                                                                                                   \
})
#endif
#endif