/*  DO NOT EDIT THIS FILE
    This file is generated by tools/genfaultinject.py
    Edit that not this */
#if !(defined(_MSC_VER) && !defined(__clang__))
#ifdef APSW_FAULT_INJECT

#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 Connection_fts5_api
#undef MakeExistingException
#undef MakeTableChange
#undef PyBool_FromLong
#undef PyBytes_FromStringAndSize
#undef PyCode_NewEmpty
#undef PyContextVar_Get
#undef PyContextVar_New
#undef PyContext_CopyCurrent
#undef PyContext_Enter
#undef PyDict_GetItemWithError
#undef PyDict_New
#undef PyDict_SetItem
#undef PyDict_SetItemString
#undef PyErr_NewExceptionWithDoc
#undef PyFloat_AsDouble
#undef PyFloat_FromDouble
#undef PyFloat_FromString
#undef PyFrame_New
#undef PyFrozenSet_New
#undef PyImport_Import
#undef PyImport_ImportModuleAttr
#undef PyIter_Next
#undef PyList_Append
#undef PyList_GetItem
#undef PyList_New
#undef PyList_SetItem
#undef PyList_Size
#undef PyList_Sort
#undef PyLong_AsDouble
#undef PyLong_AsInt
#undef PyLong_AsLong
#undef PyLong_AsLongLong
#undef PyLong_FromLong
#undef PyLong_FromLongLong
#undef PyLong_FromSize_t
#undef PyLong_FromSsize_t
#undef PyLong_FromUnicodeObject
#undef PyLong_FromUnsignedLong
#undef PyLong_FromUnsignedLongLong
#undef PyLong_FromVoidPtr
#undef PyMapping_GetItemString
#undef PyMapping_Items
#undef PyMapping_Size
#undef PyMem_Calloc
#undef PyMem_Malloc
#undef PyMem_Realloc
#undef PyMemoryView_FromMemory
#undef PyModule_AddFunctions
#undef PyModule_AddIntConstant
#undef PyModule_AddObject
#undef PyModule_AddObjectRef
#undef PyModule_AddStringConstant
#undef PyModule_Create2
#undef PyNumber_Float
#undef PyNumber_Long
#undef PyObject_CallMethodNoArgs
#undef PyObject_CallNoArgs
#undef PyObject_CallObject
#undef PyObject_GenericGetAttr
#undef PyObject_GenericSetAttr
#undef PyObject_GetAttr
#undef PyObject_GetBuffer
#undef PyObject_GetBufferContiguous
#undef PyObject_GetBufferContiguousBounded
#undef PyObject_GetIter
#undef PyObject_IsInstance
#undef PyObject_IsTrue
#undef PyObject_IsTrueStrict
#undef PyObject_RichCompareBool
#undef PyObject_SetAttr
#undef PyObject_Str
#undef PyObject_VectorcallMethod_AutoAsync
#undef PyObject_VectorcallMethod_NoAsync
#undef PyObject_Vectorcall_AutoAsync
#undef PyObject_Vectorcall_NoAsync
#undef PySequence_Fast
#undef PySequence_GetItem
#undef PySequence_GetSlice
#undef PySequence_List
#undef PySequence_SetItem
#undef PySequence_Size
#undef PySequence_Tuple
#undef PySet_Add
#undef PySet_Contains
#undef PySet_Discard
#undef PySet_New
#undef PyStructSequence_InitType2
#undef PyStructSequence_New
#undef PyStructSequence_NewType
#undef PyTuple_New
#undef PyTuple_Pack
#undef PyType_FromModuleAndSpec
#undef PyType_GenericNew
#undef PyType_Ready
#undef PyUnicode_AsUTF8
#undef PyUnicode_AsUTF8AndSize
#undef PyUnicode_AsUTF8String
#undef PyUnicode_DecodeUTF8
#undef PyUnicode_FromFormat
#undef PyUnicode_FromKindAndData
#undef PyUnicode_FromString
#undef PyUnicode_FromStringAndSize
#undef PyUnicode_New
#undef PyWeakref_GetObject
#undef PyWeakref_NewRef
#undef Py_BuildValue
#undef Py_EnterRecursiveCall
#undef Py_VaBuildValue
#undef _PyBytes_Resize
#undef _PyObject_New
#undef _PyTuple_Resize
#undef allocfunccbinfo
#undef apsw_strdup
#undef convert_column_to_pyobject
#undef convert_value_to_pyobject
#undef convertutf8string
#undef fts5extensionapi_acquire
#undef get_token_value
#undef get_window_function_context
#undef getfunctionargs
#undef jsonb_add_tag
#undef jsonb_add_tag_and_data
#undef jsonb_append_data
#undef jsonb_encode_internal
#undef jsonb_encode_object_key
#undef jsonb_grow_buffer
#undef jsonb_update_tag
#undef make_boxed_call
#undef realloc
#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_carray_bind_v2
#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_release_memory
#undef sqlite3_db_status
#undef sqlite3_declare_vtab
#undef sqlite3_deserialize
#undef sqlite3_drop_modules
#undef sqlite3_enable_load_extension
#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
#undef sqlite3_prepare_v3
#undef sqlite3_preupdate_new
#undef sqlite3_preupdate_old
#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
#undef sqlite3changegroup_add
#undef sqlite3changegroup_add_change
#undef sqlite3changegroup_add_strm
#undef sqlite3changegroup_new
#undef sqlite3changegroup_output
#undef sqlite3changegroup_output_strm
#undef sqlite3changegroup_schema
#undef sqlite3changeset_apply_v2
#undef sqlite3changeset_apply_v2_strm
#undef sqlite3changeset_concat
#undef sqlite3changeset_concat_strm
#undef sqlite3changeset_conflict
#undef sqlite3changeset_fk_conflicts
#undef sqlite3changeset_invert
#undef sqlite3changeset_invert_strm
#undef sqlite3changeset_new
#undef sqlite3changeset_next
#undef sqlite3changeset_old
#undef sqlite3changeset_op
#undef sqlite3changeset_pk
#undef sqlite3changeset_start
#undef sqlite3changeset_start_strm
#undef sqlite3changeset_start_v2
#undef sqlite3changeset_start_v2_strm
#undef sqlite3changeset_upgrade
#undef sqlite3rebaser_configure
#undef sqlite3rebaser_create
#undef sqlite3rebaser_rebase
#undef sqlite3rebaser_rebase_strm
#undef sqlite3session_attach
#undef sqlite3session_changeset
#undef sqlite3session_changeset_strm
#undef sqlite3session_config
#undef sqlite3session_create
#undef sqlite3session_diff
#undef sqlite3session_object_config
#undef sqlite3session_patchset
#undef sqlite3session_patchset_strm

#else

#define Connection_fts5_api(...) \
({                                                                                                                                                            \
    __auto_type _res_Connection_fts5_api = 0 ? Connection_fts5_api(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_Connection_fts5_api = (typeof (_res_Connection_fts5_api))APSW_FaultInjectControl("Connection_fts5_api", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_Connection_fts5_api))0x1FACADE == _res_Connection_fts5_api)                                                                             \
       _res_Connection_fts5_api = Connection_fts5_api(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_Connection_fts5_api))0x2FACADE == _res_Connection_fts5_api)                                                                         \
    {                                                                                                                                                         \
        Connection_fts5_api(__VA_ARGS__);                                                                                                                     \
        _res_Connection_fts5_api = (typeof (_res_Connection_fts5_api))18;                                                                                     \
    }                                                                                                                                                         \
    _res_Connection_fts5_api;                                                                                                                                 \
})
#define MakeExistingException(...) \
({                                                                                                                                                                  \
    __auto_type _res_MakeExistingException = 0 ? MakeExistingException(__VA_ARGS__) : 0;                                                                            \
    if(!PyErr_Occurred()) {                                                                                                                                         \
                                                                                                                                                                    \
    _res_MakeExistingException = (typeof (_res_MakeExistingException))APSW_FaultInjectControl("MakeExistingException", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_MakeExistingException))0x1FACADE == _res_MakeExistingException)                                                                               \
       _res_MakeExistingException = MakeExistingException(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_MakeExistingException))0x2FACADE == _res_MakeExistingException)                                                                           \
    {                                                                                                                                                               \
        MakeExistingException(__VA_ARGS__);                                                                                                                         \
        _res_MakeExistingException = (typeof (_res_MakeExistingException))18;                                                                                       \
    }                                                                                                                                                               \
    }                                                                                                                                                               \
    _res_MakeExistingException;                                                                                                                                     \
})
#define MakeTableChange(...) \
({                                                                                                                                                \
    __auto_type _res_MakeTableChange = 0 ? MakeTableChange(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_MakeTableChange = (typeof (_res_MakeTableChange))APSW_FaultInjectControl("MakeTableChange", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_MakeTableChange))0x1FACADE == _res_MakeTableChange)                                                                         \
       _res_MakeTableChange = MakeTableChange(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_MakeTableChange))0x2FACADE == _res_MakeTableChange)                                                                     \
    {                                                                                                                                             \
        MakeTableChange(__VA_ARGS__);                                                                                                             \
        _res_MakeTableChange = (typeof (_res_MakeTableChange))18;                                                                                 \
    }                                                                                                                                             \
    _res_MakeTableChange;                                                                                                                         \
})
#define PyBool_FromLong(...) \
({                                                                                                                                                \
    __auto_type _res_PyBool_FromLong = 0 ? PyBool_FromLong(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyBool_FromLong = (typeof (_res_PyBool_FromLong))APSW_FaultInjectControl("PyBool_FromLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyBool_FromLong))0x1FACADE == _res_PyBool_FromLong)                                                                         \
       _res_PyBool_FromLong = PyBool_FromLong(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyBool_FromLong))0x2FACADE == _res_PyBool_FromLong)                                                                     \
    {                                                                                                                                             \
        PyBool_FromLong(__VA_ARGS__);                                                                                                             \
        _res_PyBool_FromLong = (typeof (_res_PyBool_FromLong))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyBool_FromLong;                                                                                                                         \
})
#define PyBytes_FromStringAndSize(...) \
({                                                                                                                                                                              \
    __auto_type _res_PyBytes_FromStringAndSize = 0 ? PyBytes_FromStringAndSize(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_PyBytes_FromStringAndSize = (typeof (_res_PyBytes_FromStringAndSize))APSW_FaultInjectControl("PyBytes_FromStringAndSize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_PyBytes_FromStringAndSize))0x1FACADE == _res_PyBytes_FromStringAndSize)                                                                                   \
       _res_PyBytes_FromStringAndSize = PyBytes_FromStringAndSize(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_PyBytes_FromStringAndSize))0x2FACADE == _res_PyBytes_FromStringAndSize)                                                                               \
    {                                                                                                                                                                           \
        PyBytes_FromStringAndSize(__VA_ARGS__);                                                                                                                                 \
        _res_PyBytes_FromStringAndSize = (typeof (_res_PyBytes_FromStringAndSize))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_PyBytes_FromStringAndSize;                                                                                                                                             \
})
#define PyCode_NewEmpty(...) \
({                                                                                                                                                \
    __auto_type _res_PyCode_NewEmpty = 0 ? PyCode_NewEmpty(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyCode_NewEmpty = (typeof (_res_PyCode_NewEmpty))APSW_FaultInjectControl("PyCode_NewEmpty", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyCode_NewEmpty))0x1FACADE == _res_PyCode_NewEmpty)                                                                         \
       _res_PyCode_NewEmpty = PyCode_NewEmpty(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyCode_NewEmpty))0x2FACADE == _res_PyCode_NewEmpty)                                                                     \
    {                                                                                                                                             \
        PyCode_NewEmpty(__VA_ARGS__);                                                                                                             \
        _res_PyCode_NewEmpty = (typeof (_res_PyCode_NewEmpty))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyCode_NewEmpty;                                                                                                                         \
})
#define PyContextVar_Get(...) \
({                                                                                                                                                   \
    __auto_type _res_PyContextVar_Get = 0 ? PyContextVar_Get(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyContextVar_Get = (typeof (_res_PyContextVar_Get))APSW_FaultInjectControl("PyContextVar_Get", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyContextVar_Get))0x1FACADE == _res_PyContextVar_Get)                                                                          \
       _res_PyContextVar_Get = PyContextVar_Get(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyContextVar_Get))0x2FACADE == _res_PyContextVar_Get)                                                                      \
    {                                                                                                                                                \
        PyContextVar_Get(__VA_ARGS__);                                                                                                               \
        _res_PyContextVar_Get = (typeof (_res_PyContextVar_Get))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyContextVar_Get;                                                                                                                           \
})
#define PyContextVar_New(...) \
({                                                                                                                                                   \
    __auto_type _res_PyContextVar_New = 0 ? PyContextVar_New(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyContextVar_New = (typeof (_res_PyContextVar_New))APSW_FaultInjectControl("PyContextVar_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyContextVar_New))0x1FACADE == _res_PyContextVar_New)                                                                          \
       _res_PyContextVar_New = PyContextVar_New(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyContextVar_New))0x2FACADE == _res_PyContextVar_New)                                                                      \
    {                                                                                                                                                \
        PyContextVar_New(__VA_ARGS__);                                                                                                               \
        _res_PyContextVar_New = (typeof (_res_PyContextVar_New))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyContextVar_New;                                                                                                                           \
})
#define PyContext_CopyCurrent(...) \
({                                                                                                                                                                  \
    __auto_type _res_PyContext_CopyCurrent = 0 ? PyContext_CopyCurrent(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_PyContext_CopyCurrent = (typeof (_res_PyContext_CopyCurrent))APSW_FaultInjectControl("PyContext_CopyCurrent", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_PyContext_CopyCurrent))0x1FACADE == _res_PyContext_CopyCurrent)                                                                               \
       _res_PyContext_CopyCurrent = PyContext_CopyCurrent(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_PyContext_CopyCurrent))0x2FACADE == _res_PyContext_CopyCurrent)                                                                           \
    {                                                                                                                                                               \
        PyContext_CopyCurrent(__VA_ARGS__);                                                                                                                         \
        _res_PyContext_CopyCurrent = (typeof (_res_PyContext_CopyCurrent))18;                                                                                       \
    }                                                                                                                                                               \
    _res_PyContext_CopyCurrent;                                                                                                                                     \
})
#define PyContext_Enter(...) \
({                                                                                                                                                \
    __auto_type _res_PyContext_Enter = 0 ? PyContext_Enter(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyContext_Enter = (typeof (_res_PyContext_Enter))APSW_FaultInjectControl("PyContext_Enter", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyContext_Enter))0x1FACADE == _res_PyContext_Enter)                                                                         \
       _res_PyContext_Enter = PyContext_Enter(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyContext_Enter))0x2FACADE == _res_PyContext_Enter)                                                                     \
    {                                                                                                                                             \
        PyContext_Enter(__VA_ARGS__);                                                                                                             \
        _res_PyContext_Enter = (typeof (_res_PyContext_Enter))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyContext_Enter;                                                                                                                         \
})
#define PyDict_GetItemWithError(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyDict_GetItemWithError = 0 ? PyDict_GetItemWithError(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyDict_GetItemWithError = (typeof (_res_PyDict_GetItemWithError))APSW_FaultInjectControl("PyDict_GetItemWithError", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyDict_GetItemWithError))0x1FACADE == _res_PyDict_GetItemWithError)                                                                                 \
       _res_PyDict_GetItemWithError = PyDict_GetItemWithError(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyDict_GetItemWithError))0x2FACADE == _res_PyDict_GetItemWithError)                                                                             \
    {                                                                                                                                                                     \
        PyDict_GetItemWithError(__VA_ARGS__);                                                                                                                             \
        _res_PyDict_GetItemWithError = (typeof (_res_PyDict_GetItemWithError))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyDict_GetItemWithError;                                                                                                                                         \
})
#define PyDict_New(...) \
({                                                                                                                                 \
    __auto_type _res_PyDict_New = 0 ? PyDict_New(__VA_ARGS__) : 0;                                                                 \
                                                                                                                                   \
    _res_PyDict_New = (typeof (_res_PyDict_New))APSW_FaultInjectControl("PyDict_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                   \
    if ((typeof (_res_PyDict_New))0x1FACADE == _res_PyDict_New)                                                                    \
       _res_PyDict_New = PyDict_New(__VA_ARGS__);                                                                                  \
    else if ((typeof(_res_PyDict_New))0x2FACADE == _res_PyDict_New)                                                                \
    {                                                                                                                              \
        PyDict_New(__VA_ARGS__);                                                                                                   \
        _res_PyDict_New = (typeof (_res_PyDict_New))18;                                                                            \
    }                                                                                                                              \
    _res_PyDict_New;                                                                                                               \
})
#define PyDict_SetItem(...) \
({                                                                                                                                             \
    __auto_type _res_PyDict_SetItem = 0 ? PyDict_SetItem(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_PyDict_SetItem = (typeof (_res_PyDict_SetItem))APSW_FaultInjectControl("PyDict_SetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_PyDict_SetItem))0x1FACADE == _res_PyDict_SetItem)                                                                        \
       _res_PyDict_SetItem = PyDict_SetItem(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_PyDict_SetItem))0x2FACADE == _res_PyDict_SetItem)                                                                    \
    {                                                                                                                                          \
        PyDict_SetItem(__VA_ARGS__);                                                                                                           \
        _res_PyDict_SetItem = (typeof (_res_PyDict_SetItem))18;                                                                                \
    }                                                                                                                                          \
    _res_PyDict_SetItem;                                                                                                                       \
})
#define PyDict_SetItemString(...) \
({                                                                                                                                                               \
    __auto_type _res_PyDict_SetItemString = 0 ? PyDict_SetItemString(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_PyDict_SetItemString = (typeof (_res_PyDict_SetItemString))APSW_FaultInjectControl("PyDict_SetItemString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_PyDict_SetItemString))0x1FACADE == _res_PyDict_SetItemString)                                                                              \
       _res_PyDict_SetItemString = PyDict_SetItemString(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_PyDict_SetItemString))0x2FACADE == _res_PyDict_SetItemString)                                                                          \
    {                                                                                                                                                            \
        PyDict_SetItemString(__VA_ARGS__);                                                                                                                       \
        _res_PyDict_SetItemString = (typeof (_res_PyDict_SetItemString))18;                                                                                      \
    }                                                                                                                                                            \
    _res_PyDict_SetItemString;                                                                                                                                   \
})
#define PyErr_NewExceptionWithDoc(...) \
({                                                                                                                                                                              \
    __auto_type _res_PyErr_NewExceptionWithDoc = 0 ? PyErr_NewExceptionWithDoc(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_PyErr_NewExceptionWithDoc = (typeof (_res_PyErr_NewExceptionWithDoc))APSW_FaultInjectControl("PyErr_NewExceptionWithDoc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_PyErr_NewExceptionWithDoc))0x1FACADE == _res_PyErr_NewExceptionWithDoc)                                                                                   \
       _res_PyErr_NewExceptionWithDoc = PyErr_NewExceptionWithDoc(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_PyErr_NewExceptionWithDoc))0x2FACADE == _res_PyErr_NewExceptionWithDoc)                                                                               \
    {                                                                                                                                                                           \
        PyErr_NewExceptionWithDoc(__VA_ARGS__);                                                                                                                                 \
        _res_PyErr_NewExceptionWithDoc = (typeof (_res_PyErr_NewExceptionWithDoc))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_PyErr_NewExceptionWithDoc;                                                                                                                                             \
})
#define PyFloat_AsDouble(...) \
({                                                                                                                                                   \
    __auto_type _res_PyFloat_AsDouble = 0 ? PyFloat_AsDouble(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyFloat_AsDouble = (typeof (_res_PyFloat_AsDouble))APSW_FaultInjectControl("PyFloat_AsDouble", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyFloat_AsDouble))0x1FACADE == _res_PyFloat_AsDouble)                                                                          \
       _res_PyFloat_AsDouble = PyFloat_AsDouble(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyFloat_AsDouble))0x2FACADE == _res_PyFloat_AsDouble)                                                                      \
    {                                                                                                                                                \
        PyFloat_AsDouble(__VA_ARGS__);                                                                                                               \
        _res_PyFloat_AsDouble = (typeof (_res_PyFloat_AsDouble))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyFloat_AsDouble;                                                                                                                           \
})
#define PyFloat_FromDouble(...) \
({                                                                                                                                                         \
    __auto_type _res_PyFloat_FromDouble = 0 ? PyFloat_FromDouble(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PyFloat_FromDouble = (typeof (_res_PyFloat_FromDouble))APSW_FaultInjectControl("PyFloat_FromDouble", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PyFloat_FromDouble))0x1FACADE == _res_PyFloat_FromDouble)                                                                            \
       _res_PyFloat_FromDouble = PyFloat_FromDouble(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PyFloat_FromDouble))0x2FACADE == _res_PyFloat_FromDouble)                                                                        \
    {                                                                                                                                                      \
        PyFloat_FromDouble(__VA_ARGS__);                                                                                                                   \
        _res_PyFloat_FromDouble = (typeof (_res_PyFloat_FromDouble))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PyFloat_FromDouble;                                                                                                                               \
})
#define PyFloat_FromString(...) \
({                                                                                                                                                         \
    __auto_type _res_PyFloat_FromString = 0 ? PyFloat_FromString(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PyFloat_FromString = (typeof (_res_PyFloat_FromString))APSW_FaultInjectControl("PyFloat_FromString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PyFloat_FromString))0x1FACADE == _res_PyFloat_FromString)                                                                            \
       _res_PyFloat_FromString = PyFloat_FromString(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PyFloat_FromString))0x2FACADE == _res_PyFloat_FromString)                                                                        \
    {                                                                                                                                                      \
        PyFloat_FromString(__VA_ARGS__);                                                                                                                   \
        _res_PyFloat_FromString = (typeof (_res_PyFloat_FromString))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PyFloat_FromString;                                                                                                                               \
})
#define PyFrame_New(...) \
({                                                                                                                                    \
    __auto_type _res_PyFrame_New = 0 ? PyFrame_New(__VA_ARGS__) : 0;                                                                  \
                                                                                                                                      \
    _res_PyFrame_New = (typeof (_res_PyFrame_New))APSW_FaultInjectControl("PyFrame_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                      \
    if ((typeof (_res_PyFrame_New))0x1FACADE == _res_PyFrame_New)                                                                     \
       _res_PyFrame_New = PyFrame_New(__VA_ARGS__);                                                                                   \
    else if ((typeof(_res_PyFrame_New))0x2FACADE == _res_PyFrame_New)                                                                 \
    {                                                                                                                                 \
        PyFrame_New(__VA_ARGS__);                                                                                                     \
        _res_PyFrame_New = (typeof (_res_PyFrame_New))18;                                                                             \
    }                                                                                                                                 \
    _res_PyFrame_New;                                                                                                                 \
})
#define PyFrozenSet_New(...) \
({                                                                                                                                                \
    __auto_type _res_PyFrozenSet_New = 0 ? PyFrozenSet_New(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyFrozenSet_New = (typeof (_res_PyFrozenSet_New))APSW_FaultInjectControl("PyFrozenSet_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyFrozenSet_New))0x1FACADE == _res_PyFrozenSet_New)                                                                         \
       _res_PyFrozenSet_New = PyFrozenSet_New(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyFrozenSet_New))0x2FACADE == _res_PyFrozenSet_New)                                                                     \
    {                                                                                                                                             \
        PyFrozenSet_New(__VA_ARGS__);                                                                                                             \
        _res_PyFrozenSet_New = (typeof (_res_PyFrozenSet_New))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyFrozenSet_New;                                                                                                                         \
})
#define PyImport_Import(...) \
({                                                                                                                                                \
    __auto_type _res_PyImport_Import = 0 ? PyImport_Import(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyImport_Import = (typeof (_res_PyImport_Import))APSW_FaultInjectControl("PyImport_Import", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyImport_Import))0x1FACADE == _res_PyImport_Import)                                                                         \
       _res_PyImport_Import = PyImport_Import(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyImport_Import))0x2FACADE == _res_PyImport_Import)                                                                     \
    {                                                                                                                                             \
        PyImport_Import(__VA_ARGS__);                                                                                                             \
        _res_PyImport_Import = (typeof (_res_PyImport_Import))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyImport_Import;                                                                                                                         \
})
#define PyImport_ImportModuleAttr(...) \
({                                                                                                                                                                              \
    __auto_type _res_PyImport_ImportModuleAttr = 0 ? PyImport_ImportModuleAttr(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_PyImport_ImportModuleAttr = (typeof (_res_PyImport_ImportModuleAttr))APSW_FaultInjectControl("PyImport_ImportModuleAttr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_PyImport_ImportModuleAttr))0x1FACADE == _res_PyImport_ImportModuleAttr)                                                                                   \
       _res_PyImport_ImportModuleAttr = PyImport_ImportModuleAttr(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_PyImport_ImportModuleAttr))0x2FACADE == _res_PyImport_ImportModuleAttr)                                                                               \
    {                                                                                                                                                                           \
        PyImport_ImportModuleAttr(__VA_ARGS__);                                                                                                                                 \
        _res_PyImport_ImportModuleAttr = (typeof (_res_PyImport_ImportModuleAttr))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_PyImport_ImportModuleAttr;                                                                                                                                             \
})
#define PyIter_Next(...) \
({                                                                                                                                    \
    __auto_type _res_PyIter_Next = 0 ? PyIter_Next(__VA_ARGS__) : 0;                                                                  \
                                                                                                                                      \
    _res_PyIter_Next = (typeof (_res_PyIter_Next))APSW_FaultInjectControl("PyIter_Next", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                      \
    if ((typeof (_res_PyIter_Next))0x1FACADE == _res_PyIter_Next)                                                                     \
       _res_PyIter_Next = PyIter_Next(__VA_ARGS__);                                                                                   \
    else if ((typeof(_res_PyIter_Next))0x2FACADE == _res_PyIter_Next)                                                                 \
    {                                                                                                                                 \
        PyIter_Next(__VA_ARGS__);                                                                                                     \
        _res_PyIter_Next = (typeof (_res_PyIter_Next))18;                                                                             \
    }                                                                                                                                 \
    _res_PyIter_Next;                                                                                                                 \
})
#define PyList_Append(...) \
({                                                                                                                                          \
    __auto_type _res_PyList_Append = 0 ? PyList_Append(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_PyList_Append = (typeof (_res_PyList_Append))APSW_FaultInjectControl("PyList_Append", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_PyList_Append))0x1FACADE == _res_PyList_Append)                                                                       \
       _res_PyList_Append = PyList_Append(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_PyList_Append))0x2FACADE == _res_PyList_Append)                                                                   \
    {                                                                                                                                       \
        PyList_Append(__VA_ARGS__);                                                                                                         \
        _res_PyList_Append = (typeof (_res_PyList_Append))18;                                                                               \
    }                                                                                                                                       \
    _res_PyList_Append;                                                                                                                     \
})
#define PyList_GetItem(...) \
({                                                                                                                                             \
    __auto_type _res_PyList_GetItem = 0 ? PyList_GetItem(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_PyList_GetItem = (typeof (_res_PyList_GetItem))APSW_FaultInjectControl("PyList_GetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_PyList_GetItem))0x1FACADE == _res_PyList_GetItem)                                                                        \
       _res_PyList_GetItem = PyList_GetItem(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_PyList_GetItem))0x2FACADE == _res_PyList_GetItem)                                                                    \
    {                                                                                                                                          \
        PyList_GetItem(__VA_ARGS__);                                                                                                           \
        _res_PyList_GetItem = (typeof (_res_PyList_GetItem))18;                                                                                \
    }                                                                                                                                          \
    _res_PyList_GetItem;                                                                                                                       \
})
#define PyList_New(...) \
({                                                                                                                                 \
    __auto_type _res_PyList_New = 0 ? PyList_New(__VA_ARGS__) : 0;                                                                 \
                                                                                                                                   \
    _res_PyList_New = (typeof (_res_PyList_New))APSW_FaultInjectControl("PyList_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                   \
    if ((typeof (_res_PyList_New))0x1FACADE == _res_PyList_New)                                                                    \
       _res_PyList_New = PyList_New(__VA_ARGS__);                                                                                  \
    else if ((typeof(_res_PyList_New))0x2FACADE == _res_PyList_New)                                                                \
    {                                                                                                                              \
        PyList_New(__VA_ARGS__);                                                                                                   \
        _res_PyList_New = (typeof (_res_PyList_New))18;                                                                            \
    }                                                                                                                              \
    _res_PyList_New;                                                                                                               \
})
#define PyList_SetItem(...) \
({                                                                                                                                             \
    __auto_type _res_PyList_SetItem = 0 ? PyList_SetItem(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_PyList_SetItem = (typeof (_res_PyList_SetItem))APSW_FaultInjectControl("PyList_SetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_PyList_SetItem))0x1FACADE == _res_PyList_SetItem)                                                                        \
       _res_PyList_SetItem = PyList_SetItem(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_PyList_SetItem))0x2FACADE == _res_PyList_SetItem)                                                                    \
    {                                                                                                                                          \
        PyList_SetItem(__VA_ARGS__);                                                                                                           \
        _res_PyList_SetItem = (typeof (_res_PyList_SetItem))18;                                                                                \
    }                                                                                                                                          \
    _res_PyList_SetItem;                                                                                                                       \
})
#define PyList_Size(...) \
({                                                                                                                                    \
    __auto_type _res_PyList_Size = 0 ? PyList_Size(__VA_ARGS__) : 0;                                                                  \
                                                                                                                                      \
    _res_PyList_Size = (typeof (_res_PyList_Size))APSW_FaultInjectControl("PyList_Size", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                      \
    if ((typeof (_res_PyList_Size))0x1FACADE == _res_PyList_Size)                                                                     \
       _res_PyList_Size = PyList_Size(__VA_ARGS__);                                                                                   \
    else if ((typeof(_res_PyList_Size))0x2FACADE == _res_PyList_Size)                                                                 \
    {                                                                                                                                 \
        PyList_Size(__VA_ARGS__);                                                                                                     \
        _res_PyList_Size = (typeof (_res_PyList_Size))18;                                                                             \
    }                                                                                                                                 \
    _res_PyList_Size;                                                                                                                 \
})
#define PyList_Sort(...) \
({                                                                                                                                    \
    __auto_type _res_PyList_Sort = 0 ? PyList_Sort(__VA_ARGS__) : 0;                                                                  \
                                                                                                                                      \
    _res_PyList_Sort = (typeof (_res_PyList_Sort))APSW_FaultInjectControl("PyList_Sort", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                      \
    if ((typeof (_res_PyList_Sort))0x1FACADE == _res_PyList_Sort)                                                                     \
       _res_PyList_Sort = PyList_Sort(__VA_ARGS__);                                                                                   \
    else if ((typeof(_res_PyList_Sort))0x2FACADE == _res_PyList_Sort)                                                                 \
    {                                                                                                                                 \
        PyList_Sort(__VA_ARGS__);                                                                                                     \
        _res_PyList_Sort = (typeof (_res_PyList_Sort))18;                                                                             \
    }                                                                                                                                 \
    _res_PyList_Sort;                                                                                                                 \
})
#define PyLong_AsDouble(...) \
({                                                                                                                                                \
    __auto_type _res_PyLong_AsDouble = 0 ? PyLong_AsDouble(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyLong_AsDouble = (typeof (_res_PyLong_AsDouble))APSW_FaultInjectControl("PyLong_AsDouble", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyLong_AsDouble))0x1FACADE == _res_PyLong_AsDouble)                                                                         \
       _res_PyLong_AsDouble = PyLong_AsDouble(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyLong_AsDouble))0x2FACADE == _res_PyLong_AsDouble)                                                                     \
    {                                                                                                                                             \
        PyLong_AsDouble(__VA_ARGS__);                                                                                                             \
        _res_PyLong_AsDouble = (typeof (_res_PyLong_AsDouble))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyLong_AsDouble;                                                                                                                         \
})
#define PyLong_AsInt(...) \
({                                                                                                                                       \
    __auto_type _res_PyLong_AsInt = 0 ? PyLong_AsInt(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_PyLong_AsInt = (typeof (_res_PyLong_AsInt))APSW_FaultInjectControl("PyLong_AsInt", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_PyLong_AsInt))0x1FACADE == _res_PyLong_AsInt)                                                                      \
       _res_PyLong_AsInt = PyLong_AsInt(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_PyLong_AsInt))0x2FACADE == _res_PyLong_AsInt)                                                                  \
    {                                                                                                                                    \
        PyLong_AsInt(__VA_ARGS__);                                                                                                       \
        _res_PyLong_AsInt = (typeof (_res_PyLong_AsInt))18;                                                                              \
    }                                                                                                                                    \
    _res_PyLong_AsInt;                                                                                                                   \
})
#define PyLong_AsLong(...) \
({                                                                                                                                          \
    __auto_type _res_PyLong_AsLong = 0 ? PyLong_AsLong(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_PyLong_AsLong = (typeof (_res_PyLong_AsLong))APSW_FaultInjectControl("PyLong_AsLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_PyLong_AsLong))0x1FACADE == _res_PyLong_AsLong)                                                                       \
       _res_PyLong_AsLong = PyLong_AsLong(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_PyLong_AsLong))0x2FACADE == _res_PyLong_AsLong)                                                                   \
    {                                                                                                                                       \
        PyLong_AsLong(__VA_ARGS__);                                                                                                         \
        _res_PyLong_AsLong = (typeof (_res_PyLong_AsLong))18;                                                                               \
    }                                                                                                                                       \
    _res_PyLong_AsLong;                                                                                                                     \
})
#define PyLong_AsLongLong(...) \
({                                                                                                                                                      \
    __auto_type _res_PyLong_AsLongLong = 0 ? PyLong_AsLongLong(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_PyLong_AsLongLong = (typeof (_res_PyLong_AsLongLong))APSW_FaultInjectControl("PyLong_AsLongLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_PyLong_AsLongLong))0x1FACADE == _res_PyLong_AsLongLong)                                                                           \
       _res_PyLong_AsLongLong = PyLong_AsLongLong(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_PyLong_AsLongLong))0x2FACADE == _res_PyLong_AsLongLong)                                                                       \
    {                                                                                                                                                   \
        PyLong_AsLongLong(__VA_ARGS__);                                                                                                                 \
        _res_PyLong_AsLongLong = (typeof (_res_PyLong_AsLongLong))18;                                                                                   \
    }                                                                                                                                                   \
    _res_PyLong_AsLongLong;                                                                                                                             \
})
#define PyLong_FromLong(...) \
({                                                                                                                                                \
    __auto_type _res_PyLong_FromLong = 0 ? PyLong_FromLong(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyLong_FromLong = (typeof (_res_PyLong_FromLong))APSW_FaultInjectControl("PyLong_FromLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyLong_FromLong))0x1FACADE == _res_PyLong_FromLong)                                                                         \
       _res_PyLong_FromLong = PyLong_FromLong(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyLong_FromLong))0x2FACADE == _res_PyLong_FromLong)                                                                     \
    {                                                                                                                                             \
        PyLong_FromLong(__VA_ARGS__);                                                                                                             \
        _res_PyLong_FromLong = (typeof (_res_PyLong_FromLong))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyLong_FromLong;                                                                                                                         \
})
#define PyLong_FromLongLong(...) \
({                                                                                                                                                            \
    __auto_type _res_PyLong_FromLongLong = 0 ? PyLong_FromLongLong(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_PyLong_FromLongLong = (typeof (_res_PyLong_FromLongLong))APSW_FaultInjectControl("PyLong_FromLongLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_PyLong_FromLongLong))0x1FACADE == _res_PyLong_FromLongLong)                                                                             \
       _res_PyLong_FromLongLong = PyLong_FromLongLong(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_PyLong_FromLongLong))0x2FACADE == _res_PyLong_FromLongLong)                                                                         \
    {                                                                                                                                                         \
        PyLong_FromLongLong(__VA_ARGS__);                                                                                                                     \
        _res_PyLong_FromLongLong = (typeof (_res_PyLong_FromLongLong))18;                                                                                     \
    }                                                                                                                                                         \
    _res_PyLong_FromLongLong;                                                                                                                                 \
})
#define PyLong_FromSize_t(...) \
({                                                                                                                                                      \
    __auto_type _res_PyLong_FromSize_t = 0 ? PyLong_FromSize_t(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_PyLong_FromSize_t = (typeof (_res_PyLong_FromSize_t))APSW_FaultInjectControl("PyLong_FromSize_t", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_PyLong_FromSize_t))0x1FACADE == _res_PyLong_FromSize_t)                                                                           \
       _res_PyLong_FromSize_t = PyLong_FromSize_t(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_PyLong_FromSize_t))0x2FACADE == _res_PyLong_FromSize_t)                                                                       \
    {                                                                                                                                                   \
        PyLong_FromSize_t(__VA_ARGS__);                                                                                                                 \
        _res_PyLong_FromSize_t = (typeof (_res_PyLong_FromSize_t))18;                                                                                   \
    }                                                                                                                                                   \
    _res_PyLong_FromSize_t;                                                                                                                             \
})
#define PyLong_FromSsize_t(...) \
({                                                                                                                                                         \
    __auto_type _res_PyLong_FromSsize_t = 0 ? PyLong_FromSsize_t(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PyLong_FromSsize_t = (typeof (_res_PyLong_FromSsize_t))APSW_FaultInjectControl("PyLong_FromSsize_t", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PyLong_FromSsize_t))0x1FACADE == _res_PyLong_FromSsize_t)                                                                            \
       _res_PyLong_FromSsize_t = PyLong_FromSsize_t(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PyLong_FromSsize_t))0x2FACADE == _res_PyLong_FromSsize_t)                                                                        \
    {                                                                                                                                                      \
        PyLong_FromSsize_t(__VA_ARGS__);                                                                                                                   \
        _res_PyLong_FromSsize_t = (typeof (_res_PyLong_FromSsize_t))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PyLong_FromSsize_t;                                                                                                                               \
})
#define PyLong_FromUnicodeObject(...) \
({                                                                                                                                                                           \
    __auto_type _res_PyLong_FromUnicodeObject = 0 ? PyLong_FromUnicodeObject(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_PyLong_FromUnicodeObject = (typeof (_res_PyLong_FromUnicodeObject))APSW_FaultInjectControl("PyLong_FromUnicodeObject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_PyLong_FromUnicodeObject))0x1FACADE == _res_PyLong_FromUnicodeObject)                                                                                  \
       _res_PyLong_FromUnicodeObject = PyLong_FromUnicodeObject(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_PyLong_FromUnicodeObject))0x2FACADE == _res_PyLong_FromUnicodeObject)                                                                              \
    {                                                                                                                                                                        \
        PyLong_FromUnicodeObject(__VA_ARGS__);                                                                                                                               \
        _res_PyLong_FromUnicodeObject = (typeof (_res_PyLong_FromUnicodeObject))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_PyLong_FromUnicodeObject;                                                                                                                                           \
})
#define PyLong_FromUnsignedLong(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyLong_FromUnsignedLong = 0 ? PyLong_FromUnsignedLong(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyLong_FromUnsignedLong = (typeof (_res_PyLong_FromUnsignedLong))APSW_FaultInjectControl("PyLong_FromUnsignedLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyLong_FromUnsignedLong))0x1FACADE == _res_PyLong_FromUnsignedLong)                                                                                 \
       _res_PyLong_FromUnsignedLong = PyLong_FromUnsignedLong(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyLong_FromUnsignedLong))0x2FACADE == _res_PyLong_FromUnsignedLong)                                                                             \
    {                                                                                                                                                                     \
        PyLong_FromUnsignedLong(__VA_ARGS__);                                                                                                                             \
        _res_PyLong_FromUnsignedLong = (typeof (_res_PyLong_FromUnsignedLong))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyLong_FromUnsignedLong;                                                                                                                                         \
})
#define PyLong_FromUnsignedLongLong(...) \
({                                                                                                                                                                                    \
    __auto_type _res_PyLong_FromUnsignedLongLong = 0 ? PyLong_FromUnsignedLongLong(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_PyLong_FromUnsignedLongLong = (typeof (_res_PyLong_FromUnsignedLongLong))APSW_FaultInjectControl("PyLong_FromUnsignedLongLong", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_PyLong_FromUnsignedLongLong))0x1FACADE == _res_PyLong_FromUnsignedLongLong)                                                                                     \
       _res_PyLong_FromUnsignedLongLong = PyLong_FromUnsignedLongLong(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_PyLong_FromUnsignedLongLong))0x2FACADE == _res_PyLong_FromUnsignedLongLong)                                                                                 \
    {                                                                                                                                                                                 \
        PyLong_FromUnsignedLongLong(__VA_ARGS__);                                                                                                                                     \
        _res_PyLong_FromUnsignedLongLong = (typeof (_res_PyLong_FromUnsignedLongLong))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_PyLong_FromUnsignedLongLong;                                                                                                                                                 \
})
#define PyLong_FromVoidPtr(...) \
({                                                                                                                                                         \
    __auto_type _res_PyLong_FromVoidPtr = 0 ? PyLong_FromVoidPtr(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PyLong_FromVoidPtr = (typeof (_res_PyLong_FromVoidPtr))APSW_FaultInjectControl("PyLong_FromVoidPtr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PyLong_FromVoidPtr))0x1FACADE == _res_PyLong_FromVoidPtr)                                                                            \
       _res_PyLong_FromVoidPtr = PyLong_FromVoidPtr(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PyLong_FromVoidPtr))0x2FACADE == _res_PyLong_FromVoidPtr)                                                                        \
    {                                                                                                                                                      \
        PyLong_FromVoidPtr(__VA_ARGS__);                                                                                                                   \
        _res_PyLong_FromVoidPtr = (typeof (_res_PyLong_FromVoidPtr))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PyLong_FromVoidPtr;                                                                                                                               \
})
#define PyMapping_GetItemString(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyMapping_GetItemString = 0 ? PyMapping_GetItemString(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyMapping_GetItemString = (typeof (_res_PyMapping_GetItemString))APSW_FaultInjectControl("PyMapping_GetItemString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyMapping_GetItemString))0x1FACADE == _res_PyMapping_GetItemString)                                                                                 \
       _res_PyMapping_GetItemString = PyMapping_GetItemString(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyMapping_GetItemString))0x2FACADE == _res_PyMapping_GetItemString)                                                                             \
    {                                                                                                                                                                     \
        PyMapping_GetItemString(__VA_ARGS__);                                                                                                                             \
        _res_PyMapping_GetItemString = (typeof (_res_PyMapping_GetItemString))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyMapping_GetItemString;                                                                                                                                         \
})
#define PyMapping_Items(...) \
({                                                                                                                                                \
    __auto_type _res_PyMapping_Items = 0 ? PyMapping_Items(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyMapping_Items = (typeof (_res_PyMapping_Items))APSW_FaultInjectControl("PyMapping_Items", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyMapping_Items))0x1FACADE == _res_PyMapping_Items)                                                                         \
       _res_PyMapping_Items = PyMapping_Items(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyMapping_Items))0x2FACADE == _res_PyMapping_Items)                                                                     \
    {                                                                                                                                             \
        PyMapping_Items(__VA_ARGS__);                                                                                                             \
        _res_PyMapping_Items = (typeof (_res_PyMapping_Items))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyMapping_Items;                                                                                                                         \
})
#define PyMapping_Size(...) \
({                                                                                                                                             \
    __auto_type _res_PyMapping_Size = 0 ? PyMapping_Size(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_PyMapping_Size = (typeof (_res_PyMapping_Size))APSW_FaultInjectControl("PyMapping_Size", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_PyMapping_Size))0x1FACADE == _res_PyMapping_Size)                                                                        \
       _res_PyMapping_Size = PyMapping_Size(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_PyMapping_Size))0x2FACADE == _res_PyMapping_Size)                                                                    \
    {                                                                                                                                          \
        PyMapping_Size(__VA_ARGS__);                                                                                                           \
        _res_PyMapping_Size = (typeof (_res_PyMapping_Size))18;                                                                                \
    }                                                                                                                                          \
    _res_PyMapping_Size;                                                                                                                       \
})
#define PyMem_Calloc(...) \
({                                                                                                                                       \
    __auto_type _res_PyMem_Calloc = 0 ? PyMem_Calloc(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_PyMem_Calloc = (typeof (_res_PyMem_Calloc))APSW_FaultInjectControl("PyMem_Calloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_PyMem_Calloc))0x1FACADE == _res_PyMem_Calloc)                                                                      \
       _res_PyMem_Calloc = PyMem_Calloc(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_PyMem_Calloc))0x2FACADE == _res_PyMem_Calloc)                                                                  \
    {                                                                                                                                    \
        PyMem_Calloc(__VA_ARGS__);                                                                                                       \
        _res_PyMem_Calloc = (typeof (_res_PyMem_Calloc))18;                                                                              \
    }                                                                                                                                    \
    _res_PyMem_Calloc;                                                                                                                   \
})
#define PyMem_Malloc(...) \
({                                                                                                                                       \
    __auto_type _res_PyMem_Malloc = 0 ? PyMem_Malloc(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_PyMem_Malloc = (typeof (_res_PyMem_Malloc))APSW_FaultInjectControl("PyMem_Malloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_PyMem_Malloc))0x1FACADE == _res_PyMem_Malloc)                                                                      \
       _res_PyMem_Malloc = PyMem_Malloc(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_PyMem_Malloc))0x2FACADE == _res_PyMem_Malloc)                                                                  \
    {                                                                                                                                    \
        PyMem_Malloc(__VA_ARGS__);                                                                                                       \
        _res_PyMem_Malloc = (typeof (_res_PyMem_Malloc))18;                                                                              \
    }                                                                                                                                    \
    _res_PyMem_Malloc;                                                                                                                   \
})
#define PyMem_Realloc(...) \
({                                                                                                                                          \
    __auto_type _res_PyMem_Realloc = 0 ? PyMem_Realloc(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_PyMem_Realloc = (typeof (_res_PyMem_Realloc))APSW_FaultInjectControl("PyMem_Realloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_PyMem_Realloc))0x1FACADE == _res_PyMem_Realloc)                                                                       \
       _res_PyMem_Realloc = PyMem_Realloc(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_PyMem_Realloc))0x2FACADE == _res_PyMem_Realloc)                                                                   \
    {                                                                                                                                       \
        PyMem_Realloc(__VA_ARGS__);                                                                                                         \
        _res_PyMem_Realloc = (typeof (_res_PyMem_Realloc))18;                                                                               \
    }                                                                                                                                       \
    _res_PyMem_Realloc;                                                                                                                     \
})
#define PyMemoryView_FromMemory(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyMemoryView_FromMemory = 0 ? PyMemoryView_FromMemory(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyMemoryView_FromMemory = (typeof (_res_PyMemoryView_FromMemory))APSW_FaultInjectControl("PyMemoryView_FromMemory", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyMemoryView_FromMemory))0x1FACADE == _res_PyMemoryView_FromMemory)                                                                                 \
       _res_PyMemoryView_FromMemory = PyMemoryView_FromMemory(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyMemoryView_FromMemory))0x2FACADE == _res_PyMemoryView_FromMemory)                                                                             \
    {                                                                                                                                                                     \
        PyMemoryView_FromMemory(__VA_ARGS__);                                                                                                                             \
        _res_PyMemoryView_FromMemory = (typeof (_res_PyMemoryView_FromMemory))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyMemoryView_FromMemory;                                                                                                                                         \
})
#define PyModule_AddFunctions(...) \
({                                                                                                                                                                  \
    __auto_type _res_PyModule_AddFunctions = 0 ? PyModule_AddFunctions(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_PyModule_AddFunctions = (typeof (_res_PyModule_AddFunctions))APSW_FaultInjectControl("PyModule_AddFunctions", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_PyModule_AddFunctions))0x1FACADE == _res_PyModule_AddFunctions)                                                                               \
       _res_PyModule_AddFunctions = PyModule_AddFunctions(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_PyModule_AddFunctions))0x2FACADE == _res_PyModule_AddFunctions)                                                                           \
    {                                                                                                                                                               \
        PyModule_AddFunctions(__VA_ARGS__);                                                                                                                         \
        _res_PyModule_AddFunctions = (typeof (_res_PyModule_AddFunctions))18;                                                                                       \
    }                                                                                                                                                               \
    _res_PyModule_AddFunctions;                                                                                                                                     \
})
#define PyModule_AddIntConstant(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyModule_AddIntConstant = 0 ? PyModule_AddIntConstant(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyModule_AddIntConstant = (typeof (_res_PyModule_AddIntConstant))APSW_FaultInjectControl("PyModule_AddIntConstant", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyModule_AddIntConstant))0x1FACADE == _res_PyModule_AddIntConstant)                                                                                 \
       _res_PyModule_AddIntConstant = PyModule_AddIntConstant(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyModule_AddIntConstant))0x2FACADE == _res_PyModule_AddIntConstant)                                                                             \
    {                                                                                                                                                                     \
        PyModule_AddIntConstant(__VA_ARGS__);                                                                                                                             \
        _res_PyModule_AddIntConstant = (typeof (_res_PyModule_AddIntConstant))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyModule_AddIntConstant;                                                                                                                                         \
})
#define PyModule_AddObject(...) \
({                                                                                                                                                         \
    __auto_type _res_PyModule_AddObject = 0 ? PyModule_AddObject(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PyModule_AddObject = (typeof (_res_PyModule_AddObject))APSW_FaultInjectControl("PyModule_AddObject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PyModule_AddObject))0x1FACADE == _res_PyModule_AddObject)                                                                            \
       _res_PyModule_AddObject = PyModule_AddObject(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PyModule_AddObject))0x2FACADE == _res_PyModule_AddObject)                                                                        \
    {                                                                                                                                                      \
        PyModule_AddObject(__VA_ARGS__);                                                                                                                   \
        _res_PyModule_AddObject = (typeof (_res_PyModule_AddObject))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PyModule_AddObject;                                                                                                                               \
})
#define PyModule_AddObjectRef(...) \
({                                                                                                                                                                  \
    __auto_type _res_PyModule_AddObjectRef = 0 ? PyModule_AddObjectRef(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_PyModule_AddObjectRef = (typeof (_res_PyModule_AddObjectRef))APSW_FaultInjectControl("PyModule_AddObjectRef", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_PyModule_AddObjectRef))0x1FACADE == _res_PyModule_AddObjectRef)                                                                               \
       _res_PyModule_AddObjectRef = PyModule_AddObjectRef(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_PyModule_AddObjectRef))0x2FACADE == _res_PyModule_AddObjectRef)                                                                           \
    {                                                                                                                                                               \
        PyModule_AddObjectRef(__VA_ARGS__);                                                                                                                         \
        _res_PyModule_AddObjectRef = (typeof (_res_PyModule_AddObjectRef))18;                                                                                       \
    }                                                                                                                                                               \
    _res_PyModule_AddObjectRef;                                                                                                                                     \
})
#define PyModule_AddStringConstant(...) \
({                                                                                                                                                                                 \
    __auto_type _res_PyModule_AddStringConstant = 0 ? PyModule_AddStringConstant(__VA_ARGS__) : 0;                                                                                 \
                                                                                                                                                                                   \
    _res_PyModule_AddStringConstant = (typeof (_res_PyModule_AddStringConstant))APSW_FaultInjectControl("PyModule_AddStringConstant", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                   \
    if ((typeof (_res_PyModule_AddStringConstant))0x1FACADE == _res_PyModule_AddStringConstant)                                                                                    \
       _res_PyModule_AddStringConstant = PyModule_AddStringConstant(__VA_ARGS__);                                                                                                  \
    else if ((typeof(_res_PyModule_AddStringConstant))0x2FACADE == _res_PyModule_AddStringConstant)                                                                                \
    {                                                                                                                                                                              \
        PyModule_AddStringConstant(__VA_ARGS__);                                                                                                                                   \
        _res_PyModule_AddStringConstant = (typeof (_res_PyModule_AddStringConstant))18;                                                                                            \
    }                                                                                                                                                                              \
    _res_PyModule_AddStringConstant;                                                                                                                                               \
})
#define PyModule_Create2(...) \
({                                                                                                                                                   \
    __auto_type _res_PyModule_Create2 = 0 ? PyModule_Create2(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyModule_Create2 = (typeof (_res_PyModule_Create2))APSW_FaultInjectControl("PyModule_Create2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyModule_Create2))0x1FACADE == _res_PyModule_Create2)                                                                          \
       _res_PyModule_Create2 = PyModule_Create2(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyModule_Create2))0x2FACADE == _res_PyModule_Create2)                                                                      \
    {                                                                                                                                                \
        PyModule_Create2(__VA_ARGS__);                                                                                                               \
        _res_PyModule_Create2 = (typeof (_res_PyModule_Create2))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyModule_Create2;                                                                                                                           \
})
#define PyNumber_Float(...) \
({                                                                                                                                             \
    __auto_type _res_PyNumber_Float = 0 ? PyNumber_Float(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_PyNumber_Float = (typeof (_res_PyNumber_Float))APSW_FaultInjectControl("PyNumber_Float", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_PyNumber_Float))0x1FACADE == _res_PyNumber_Float)                                                                        \
       _res_PyNumber_Float = PyNumber_Float(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_PyNumber_Float))0x2FACADE == _res_PyNumber_Float)                                                                    \
    {                                                                                                                                          \
        PyNumber_Float(__VA_ARGS__);                                                                                                           \
        _res_PyNumber_Float = (typeof (_res_PyNumber_Float))18;                                                                                \
    }                                                                                                                                          \
    _res_PyNumber_Float;                                                                                                                       \
})
#define PyNumber_Long(...) \
({                                                                                                                                          \
    __auto_type _res_PyNumber_Long = 0 ? PyNumber_Long(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_PyNumber_Long = (typeof (_res_PyNumber_Long))APSW_FaultInjectControl("PyNumber_Long", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_PyNumber_Long))0x1FACADE == _res_PyNumber_Long)                                                                       \
       _res_PyNumber_Long = PyNumber_Long(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_PyNumber_Long))0x2FACADE == _res_PyNumber_Long)                                                                   \
    {                                                                                                                                       \
        PyNumber_Long(__VA_ARGS__);                                                                                                         \
        _res_PyNumber_Long = (typeof (_res_PyNumber_Long))18;                                                                               \
    }                                                                                                                                       \
    _res_PyNumber_Long;                                                                                                                     \
})
#define PyObject_CallMethodNoArgs(...) \
({                                                                                                                                                                              \
    __auto_type _res_PyObject_CallMethodNoArgs = 0 ? PyObject_CallMethodNoArgs(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_PyObject_CallMethodNoArgs = (typeof (_res_PyObject_CallMethodNoArgs))APSW_FaultInjectControl("PyObject_CallMethodNoArgs", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_PyObject_CallMethodNoArgs))0x1FACADE == _res_PyObject_CallMethodNoArgs)                                                                                   \
       _res_PyObject_CallMethodNoArgs = PyObject_CallMethodNoArgs(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_PyObject_CallMethodNoArgs))0x2FACADE == _res_PyObject_CallMethodNoArgs)                                                                               \
    {                                                                                                                                                                           \
        PyObject_CallMethodNoArgs(__VA_ARGS__);                                                                                                                                 \
        _res_PyObject_CallMethodNoArgs = (typeof (_res_PyObject_CallMethodNoArgs))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_PyObject_CallMethodNoArgs;                                                                                                                                             \
})
#define PyObject_CallNoArgs(...) \
({                                                                                                                                                            \
    __auto_type _res_PyObject_CallNoArgs = 0 ? PyObject_CallNoArgs(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_PyObject_CallNoArgs = (typeof (_res_PyObject_CallNoArgs))APSW_FaultInjectControl("PyObject_CallNoArgs", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_PyObject_CallNoArgs))0x1FACADE == _res_PyObject_CallNoArgs)                                                                             \
       _res_PyObject_CallNoArgs = PyObject_CallNoArgs(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_PyObject_CallNoArgs))0x2FACADE == _res_PyObject_CallNoArgs)                                                                         \
    {                                                                                                                                                         \
        PyObject_CallNoArgs(__VA_ARGS__);                                                                                                                     \
        _res_PyObject_CallNoArgs = (typeof (_res_PyObject_CallNoArgs))18;                                                                                     \
    }                                                                                                                                                         \
    _res_PyObject_CallNoArgs;                                                                                                                                 \
})
#define PyObject_CallObject(...) \
({                                                                                                                                                            \
    __auto_type _res_PyObject_CallObject = 0 ? PyObject_CallObject(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_PyObject_CallObject = (typeof (_res_PyObject_CallObject))APSW_FaultInjectControl("PyObject_CallObject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_PyObject_CallObject))0x1FACADE == _res_PyObject_CallObject)                                                                             \
       _res_PyObject_CallObject = PyObject_CallObject(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_PyObject_CallObject))0x2FACADE == _res_PyObject_CallObject)                                                                         \
    {                                                                                                                                                         \
        PyObject_CallObject(__VA_ARGS__);                                                                                                                     \
        _res_PyObject_CallObject = (typeof (_res_PyObject_CallObject))18;                                                                                     \
    }                                                                                                                                                         \
    _res_PyObject_CallObject;                                                                                                                                 \
})
#define PyObject_GenericGetAttr(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyObject_GenericGetAttr = 0 ? PyObject_GenericGetAttr(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyObject_GenericGetAttr = (typeof (_res_PyObject_GenericGetAttr))APSW_FaultInjectControl("PyObject_GenericGetAttr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyObject_GenericGetAttr))0x1FACADE == _res_PyObject_GenericGetAttr)                                                                                 \
       _res_PyObject_GenericGetAttr = PyObject_GenericGetAttr(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyObject_GenericGetAttr))0x2FACADE == _res_PyObject_GenericGetAttr)                                                                             \
    {                                                                                                                                                                     \
        PyObject_GenericGetAttr(__VA_ARGS__);                                                                                                                             \
        _res_PyObject_GenericGetAttr = (typeof (_res_PyObject_GenericGetAttr))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyObject_GenericGetAttr;                                                                                                                                         \
})
#define PyObject_GenericSetAttr(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyObject_GenericSetAttr = 0 ? PyObject_GenericSetAttr(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyObject_GenericSetAttr = (typeof (_res_PyObject_GenericSetAttr))APSW_FaultInjectControl("PyObject_GenericSetAttr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyObject_GenericSetAttr))0x1FACADE == _res_PyObject_GenericSetAttr)                                                                                 \
       _res_PyObject_GenericSetAttr = PyObject_GenericSetAttr(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyObject_GenericSetAttr))0x2FACADE == _res_PyObject_GenericSetAttr)                                                                             \
    {                                                                                                                                                                     \
        PyObject_GenericSetAttr(__VA_ARGS__);                                                                                                                             \
        _res_PyObject_GenericSetAttr = (typeof (_res_PyObject_GenericSetAttr))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyObject_GenericSetAttr;                                                                                                                                         \
})
#define PyObject_GetAttr(...) \
({                                                                                                                                                   \
    __auto_type _res_PyObject_GetAttr = 0 ? PyObject_GetAttr(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyObject_GetAttr = (typeof (_res_PyObject_GetAttr))APSW_FaultInjectControl("PyObject_GetAttr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyObject_GetAttr))0x1FACADE == _res_PyObject_GetAttr)                                                                          \
       _res_PyObject_GetAttr = PyObject_GetAttr(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyObject_GetAttr))0x2FACADE == _res_PyObject_GetAttr)                                                                      \
    {                                                                                                                                                \
        PyObject_GetAttr(__VA_ARGS__);                                                                                                               \
        _res_PyObject_GetAttr = (typeof (_res_PyObject_GetAttr))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyObject_GetAttr;                                                                                                                           \
})
#define PyObject_GetBuffer(...) \
({                                                                                                                                                         \
    __auto_type _res_PyObject_GetBuffer = 0 ? PyObject_GetBuffer(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PyObject_GetBuffer = (typeof (_res_PyObject_GetBuffer))APSW_FaultInjectControl("PyObject_GetBuffer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PyObject_GetBuffer))0x1FACADE == _res_PyObject_GetBuffer)                                                                            \
       _res_PyObject_GetBuffer = PyObject_GetBuffer(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PyObject_GetBuffer))0x2FACADE == _res_PyObject_GetBuffer)                                                                        \
    {                                                                                                                                                      \
        PyObject_GetBuffer(__VA_ARGS__);                                                                                                                   \
        _res_PyObject_GetBuffer = (typeof (_res_PyObject_GetBuffer))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PyObject_GetBuffer;                                                                                                                               \
})
#define PyObject_GetBufferContiguous(...) \
({                                                                                                                                                                                       \
    __auto_type _res_PyObject_GetBufferContiguous = 0 ? PyObject_GetBufferContiguous(__VA_ARGS__) : 0;                                                                                   \
                                                                                                                                                                                         \
    _res_PyObject_GetBufferContiguous = (typeof (_res_PyObject_GetBufferContiguous))APSW_FaultInjectControl("PyObject_GetBufferContiguous", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                         \
    if ((typeof (_res_PyObject_GetBufferContiguous))0x1FACADE == _res_PyObject_GetBufferContiguous)                                                                                      \
       _res_PyObject_GetBufferContiguous = PyObject_GetBufferContiguous(__VA_ARGS__);                                                                                                    \
    else if ((typeof(_res_PyObject_GetBufferContiguous))0x2FACADE == _res_PyObject_GetBufferContiguous)                                                                                  \
    {                                                                                                                                                                                    \
        PyObject_GetBufferContiguous(__VA_ARGS__);                                                                                                                                       \
        _res_PyObject_GetBufferContiguous = (typeof (_res_PyObject_GetBufferContiguous))18;                                                                                              \
    }                                                                                                                                                                                    \
    _res_PyObject_GetBufferContiguous;                                                                                                                                                   \
})
#define PyObject_GetBufferContiguousBounded(...) \
({                                                                                                                                                                                                            \
    __auto_type _res_PyObject_GetBufferContiguousBounded = 0 ? PyObject_GetBufferContiguousBounded(__VA_ARGS__) : 0;                                                                                          \
                                                                                                                                                                                                              \
    _res_PyObject_GetBufferContiguousBounded = (typeof (_res_PyObject_GetBufferContiguousBounded))APSW_FaultInjectControl("PyObject_GetBufferContiguousBounded", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                                              \
    if ((typeof (_res_PyObject_GetBufferContiguousBounded))0x1FACADE == _res_PyObject_GetBufferContiguousBounded)                                                                                             \
       _res_PyObject_GetBufferContiguousBounded = PyObject_GetBufferContiguousBounded(__VA_ARGS__);                                                                                                           \
    else if ((typeof(_res_PyObject_GetBufferContiguousBounded))0x2FACADE == _res_PyObject_GetBufferContiguousBounded)                                                                                         \
    {                                                                                                                                                                                                         \
        PyObject_GetBufferContiguousBounded(__VA_ARGS__);                                                                                                                                                     \
        _res_PyObject_GetBufferContiguousBounded = (typeof (_res_PyObject_GetBufferContiguousBounded))18;                                                                                                     \
    }                                                                                                                                                                                                         \
    _res_PyObject_GetBufferContiguousBounded;                                                                                                                                                                 \
})
#define PyObject_GetIter(...) \
({                                                                                                                                                   \
    __auto_type _res_PyObject_GetIter = 0 ? PyObject_GetIter(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyObject_GetIter = (typeof (_res_PyObject_GetIter))APSW_FaultInjectControl("PyObject_GetIter", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyObject_GetIter))0x1FACADE == _res_PyObject_GetIter)                                                                          \
       _res_PyObject_GetIter = PyObject_GetIter(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyObject_GetIter))0x2FACADE == _res_PyObject_GetIter)                                                                      \
    {                                                                                                                                                \
        PyObject_GetIter(__VA_ARGS__);                                                                                                               \
        _res_PyObject_GetIter = (typeof (_res_PyObject_GetIter))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyObject_GetIter;                                                                                                                           \
})
#define PyObject_IsInstance(...) \
({                                                                                                                                                            \
    __auto_type _res_PyObject_IsInstance = 0 ? PyObject_IsInstance(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_PyObject_IsInstance = (typeof (_res_PyObject_IsInstance))APSW_FaultInjectControl("PyObject_IsInstance", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_PyObject_IsInstance))0x1FACADE == _res_PyObject_IsInstance)                                                                             \
       _res_PyObject_IsInstance = PyObject_IsInstance(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_PyObject_IsInstance))0x2FACADE == _res_PyObject_IsInstance)                                                                         \
    {                                                                                                                                                         \
        PyObject_IsInstance(__VA_ARGS__);                                                                                                                     \
        _res_PyObject_IsInstance = (typeof (_res_PyObject_IsInstance))18;                                                                                     \
    }                                                                                                                                                         \
    _res_PyObject_IsInstance;                                                                                                                                 \
})
#define PyObject_IsTrue(...) \
({                                                                                                                                                \
    __auto_type _res_PyObject_IsTrue = 0 ? PyObject_IsTrue(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PyObject_IsTrue = (typeof (_res_PyObject_IsTrue))APSW_FaultInjectControl("PyObject_IsTrue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PyObject_IsTrue))0x1FACADE == _res_PyObject_IsTrue)                                                                         \
       _res_PyObject_IsTrue = PyObject_IsTrue(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PyObject_IsTrue))0x2FACADE == _res_PyObject_IsTrue)                                                                     \
    {                                                                                                                                             \
        PyObject_IsTrue(__VA_ARGS__);                                                                                                             \
        _res_PyObject_IsTrue = (typeof (_res_PyObject_IsTrue))18;                                                                                 \
    }                                                                                                                                             \
    _res_PyObject_IsTrue;                                                                                                                         \
})
#define PyObject_IsTrueStrict(...) \
({                                                                                                                                                                  \
    __auto_type _res_PyObject_IsTrueStrict = 0 ? PyObject_IsTrueStrict(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_PyObject_IsTrueStrict = (typeof (_res_PyObject_IsTrueStrict))APSW_FaultInjectControl("PyObject_IsTrueStrict", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_PyObject_IsTrueStrict))0x1FACADE == _res_PyObject_IsTrueStrict)                                                                               \
       _res_PyObject_IsTrueStrict = PyObject_IsTrueStrict(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_PyObject_IsTrueStrict))0x2FACADE == _res_PyObject_IsTrueStrict)                                                                           \
    {                                                                                                                                                               \
        PyObject_IsTrueStrict(__VA_ARGS__);                                                                                                                         \
        _res_PyObject_IsTrueStrict = (typeof (_res_PyObject_IsTrueStrict))18;                                                                                       \
    }                                                                                                                                                               \
    _res_PyObject_IsTrueStrict;                                                                                                                                     \
})
#define PyObject_RichCompareBool(...) \
({                                                                                                                                                                           \
    __auto_type _res_PyObject_RichCompareBool = 0 ? PyObject_RichCompareBool(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_PyObject_RichCompareBool = (typeof (_res_PyObject_RichCompareBool))APSW_FaultInjectControl("PyObject_RichCompareBool", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_PyObject_RichCompareBool))0x1FACADE == _res_PyObject_RichCompareBool)                                                                                  \
       _res_PyObject_RichCompareBool = PyObject_RichCompareBool(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_PyObject_RichCompareBool))0x2FACADE == _res_PyObject_RichCompareBool)                                                                              \
    {                                                                                                                                                                        \
        PyObject_RichCompareBool(__VA_ARGS__);                                                                                                                               \
        _res_PyObject_RichCompareBool = (typeof (_res_PyObject_RichCompareBool))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_PyObject_RichCompareBool;                                                                                                                                           \
})
#define PyObject_SetAttr(...) \
({                                                                                                                                                   \
    __auto_type _res_PyObject_SetAttr = 0 ? PyObject_SetAttr(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyObject_SetAttr = (typeof (_res_PyObject_SetAttr))APSW_FaultInjectControl("PyObject_SetAttr", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyObject_SetAttr))0x1FACADE == _res_PyObject_SetAttr)                                                                          \
       _res_PyObject_SetAttr = PyObject_SetAttr(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyObject_SetAttr))0x2FACADE == _res_PyObject_SetAttr)                                                                      \
    {                                                                                                                                                \
        PyObject_SetAttr(__VA_ARGS__);                                                                                                               \
        _res_PyObject_SetAttr = (typeof (_res_PyObject_SetAttr))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyObject_SetAttr;                                                                                                                           \
})
#define PyObject_Str(...) \
({                                                                                                                                       \
    __auto_type _res_PyObject_Str = 0 ? PyObject_Str(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_PyObject_Str = (typeof (_res_PyObject_Str))APSW_FaultInjectControl("PyObject_Str", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_PyObject_Str))0x1FACADE == _res_PyObject_Str)                                                                      \
       _res_PyObject_Str = PyObject_Str(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_PyObject_Str))0x2FACADE == _res_PyObject_Str)                                                                  \
    {                                                                                                                                    \
        PyObject_Str(__VA_ARGS__);                                                                                                       \
        _res_PyObject_Str = (typeof (_res_PyObject_Str))18;                                                                              \
    }                                                                                                                                    \
    _res_PyObject_Str;                                                                                                                   \
})
#define PyObject_VectorcallMethod_AutoAsync(...) \
({                                                                                                                                                                                                            \
    __auto_type _res_PyObject_VectorcallMethod_AutoAsync = 0 ? PyObject_VectorcallMethod_AutoAsync(__VA_ARGS__) : 0;                                                                                          \
                                                                                                                                                                                                              \
    _res_PyObject_VectorcallMethod_AutoAsync = (typeof (_res_PyObject_VectorcallMethod_AutoAsync))APSW_FaultInjectControl("PyObject_VectorcallMethod_AutoAsync", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                                              \
    if ((typeof (_res_PyObject_VectorcallMethod_AutoAsync))0x1FACADE == _res_PyObject_VectorcallMethod_AutoAsync)                                                                                             \
       _res_PyObject_VectorcallMethod_AutoAsync = PyObject_VectorcallMethod_AutoAsync(__VA_ARGS__);                                                                                                           \
    else if ((typeof(_res_PyObject_VectorcallMethod_AutoAsync))0x2FACADE == _res_PyObject_VectorcallMethod_AutoAsync)                                                                                         \
    {                                                                                                                                                                                                         \
        PyObject_VectorcallMethod_AutoAsync(__VA_ARGS__);                                                                                                                                                     \
        _res_PyObject_VectorcallMethod_AutoAsync = (typeof (_res_PyObject_VectorcallMethod_AutoAsync))18;                                                                                                     \
    }                                                                                                                                                                                                         \
    _res_PyObject_VectorcallMethod_AutoAsync;                                                                                                                                                                 \
})
#define PyObject_VectorcallMethod_NoAsync(...) \
({                                                                                                                                                                                                      \
    __auto_type _res_PyObject_VectorcallMethod_NoAsync = 0 ? PyObject_VectorcallMethod_NoAsync(__VA_ARGS__) : 0;                                                                                        \
                                                                                                                                                                                                        \
    _res_PyObject_VectorcallMethod_NoAsync = (typeof (_res_PyObject_VectorcallMethod_NoAsync))APSW_FaultInjectControl("PyObject_VectorcallMethod_NoAsync", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                                        \
    if ((typeof (_res_PyObject_VectorcallMethod_NoAsync))0x1FACADE == _res_PyObject_VectorcallMethod_NoAsync)                                                                                           \
       _res_PyObject_VectorcallMethod_NoAsync = PyObject_VectorcallMethod_NoAsync(__VA_ARGS__);                                                                                                         \
    else if ((typeof(_res_PyObject_VectorcallMethod_NoAsync))0x2FACADE == _res_PyObject_VectorcallMethod_NoAsync)                                                                                       \
    {                                                                                                                                                                                                   \
        PyObject_VectorcallMethod_NoAsync(__VA_ARGS__);                                                                                                                                                 \
        _res_PyObject_VectorcallMethod_NoAsync = (typeof (_res_PyObject_VectorcallMethod_NoAsync))18;                                                                                                   \
    }                                                                                                                                                                                                   \
    _res_PyObject_VectorcallMethod_NoAsync;                                                                                                                                                             \
})
#define PyObject_Vectorcall_AutoAsync(...) \
({                                                                                                                                                                                          \
    __auto_type _res_PyObject_Vectorcall_AutoAsync = 0 ? PyObject_Vectorcall_AutoAsync(__VA_ARGS__) : 0;                                                                                    \
                                                                                                                                                                                            \
    _res_PyObject_Vectorcall_AutoAsync = (typeof (_res_PyObject_Vectorcall_AutoAsync))APSW_FaultInjectControl("PyObject_Vectorcall_AutoAsync", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                            \
    if ((typeof (_res_PyObject_Vectorcall_AutoAsync))0x1FACADE == _res_PyObject_Vectorcall_AutoAsync)                                                                                       \
       _res_PyObject_Vectorcall_AutoAsync = PyObject_Vectorcall_AutoAsync(__VA_ARGS__);                                                                                                     \
    else if ((typeof(_res_PyObject_Vectorcall_AutoAsync))0x2FACADE == _res_PyObject_Vectorcall_AutoAsync)                                                                                   \
    {                                                                                                                                                                                       \
        PyObject_Vectorcall_AutoAsync(__VA_ARGS__);                                                                                                                                         \
        _res_PyObject_Vectorcall_AutoAsync = (typeof (_res_PyObject_Vectorcall_AutoAsync))18;                                                                                               \
    }                                                                                                                                                                                       \
    _res_PyObject_Vectorcall_AutoAsync;                                                                                                                                                     \
})
#define PyObject_Vectorcall_NoAsync(...) \
({                                                                                                                                                                                    \
    __auto_type _res_PyObject_Vectorcall_NoAsync = 0 ? PyObject_Vectorcall_NoAsync(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_PyObject_Vectorcall_NoAsync = (typeof (_res_PyObject_Vectorcall_NoAsync))APSW_FaultInjectControl("PyObject_Vectorcall_NoAsync", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_PyObject_Vectorcall_NoAsync))0x1FACADE == _res_PyObject_Vectorcall_NoAsync)                                                                                     \
       _res_PyObject_Vectorcall_NoAsync = PyObject_Vectorcall_NoAsync(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_PyObject_Vectorcall_NoAsync))0x2FACADE == _res_PyObject_Vectorcall_NoAsync)                                                                                 \
    {                                                                                                                                                                                 \
        PyObject_Vectorcall_NoAsync(__VA_ARGS__);                                                                                                                                     \
        _res_PyObject_Vectorcall_NoAsync = (typeof (_res_PyObject_Vectorcall_NoAsync))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_PyObject_Vectorcall_NoAsync;                                                                                                                                                 \
})
#define PySequence_Fast(...) \
({                                                                                                                                                \
    __auto_type _res_PySequence_Fast = 0 ? PySequence_Fast(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PySequence_Fast = (typeof (_res_PySequence_Fast))APSW_FaultInjectControl("PySequence_Fast", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PySequence_Fast))0x1FACADE == _res_PySequence_Fast)                                                                         \
       _res_PySequence_Fast = PySequence_Fast(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PySequence_Fast))0x2FACADE == _res_PySequence_Fast)                                                                     \
    {                                                                                                                                             \
        PySequence_Fast(__VA_ARGS__);                                                                                                             \
        _res_PySequence_Fast = (typeof (_res_PySequence_Fast))18;                                                                                 \
    }                                                                                                                                             \
    _res_PySequence_Fast;                                                                                                                         \
})
#define PySequence_GetItem(...) \
({                                                                                                                                                         \
    __auto_type _res_PySequence_GetItem = 0 ? PySequence_GetItem(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PySequence_GetItem = (typeof (_res_PySequence_GetItem))APSW_FaultInjectControl("PySequence_GetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PySequence_GetItem))0x1FACADE == _res_PySequence_GetItem)                                                                            \
       _res_PySequence_GetItem = PySequence_GetItem(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PySequence_GetItem))0x2FACADE == _res_PySequence_GetItem)                                                                        \
    {                                                                                                                                                      \
        PySequence_GetItem(__VA_ARGS__);                                                                                                                   \
        _res_PySequence_GetItem = (typeof (_res_PySequence_GetItem))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PySequence_GetItem;                                                                                                                               \
})
#define PySequence_GetSlice(...) \
({                                                                                                                                                            \
    __auto_type _res_PySequence_GetSlice = 0 ? PySequence_GetSlice(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_PySequence_GetSlice = (typeof (_res_PySequence_GetSlice))APSW_FaultInjectControl("PySequence_GetSlice", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_PySequence_GetSlice))0x1FACADE == _res_PySequence_GetSlice)                                                                             \
       _res_PySequence_GetSlice = PySequence_GetSlice(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_PySequence_GetSlice))0x2FACADE == _res_PySequence_GetSlice)                                                                         \
    {                                                                                                                                                         \
        PySequence_GetSlice(__VA_ARGS__);                                                                                                                     \
        _res_PySequence_GetSlice = (typeof (_res_PySequence_GetSlice))18;                                                                                     \
    }                                                                                                                                                         \
    _res_PySequence_GetSlice;                                                                                                                                 \
})
#define PySequence_List(...) \
({                                                                                                                                                \
    __auto_type _res_PySequence_List = 0 ? PySequence_List(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PySequence_List = (typeof (_res_PySequence_List))APSW_FaultInjectControl("PySequence_List", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PySequence_List))0x1FACADE == _res_PySequence_List)                                                                         \
       _res_PySequence_List = PySequence_List(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PySequence_List))0x2FACADE == _res_PySequence_List)                                                                     \
    {                                                                                                                                             \
        PySequence_List(__VA_ARGS__);                                                                                                             \
        _res_PySequence_List = (typeof (_res_PySequence_List))18;                                                                                 \
    }                                                                                                                                             \
    _res_PySequence_List;                                                                                                                         \
})
#define PySequence_SetItem(...) \
({                                                                                                                                                         \
    __auto_type _res_PySequence_SetItem = 0 ? PySequence_SetItem(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_PySequence_SetItem = (typeof (_res_PySequence_SetItem))APSW_FaultInjectControl("PySequence_SetItem", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_PySequence_SetItem))0x1FACADE == _res_PySequence_SetItem)                                                                            \
       _res_PySequence_SetItem = PySequence_SetItem(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_PySequence_SetItem))0x2FACADE == _res_PySequence_SetItem)                                                                        \
    {                                                                                                                                                      \
        PySequence_SetItem(__VA_ARGS__);                                                                                                                   \
        _res_PySequence_SetItem = (typeof (_res_PySequence_SetItem))18;                                                                                    \
    }                                                                                                                                                      \
    _res_PySequence_SetItem;                                                                                                                               \
})
#define PySequence_Size(...) \
({                                                                                                                                                \
    __auto_type _res_PySequence_Size = 0 ? PySequence_Size(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_PySequence_Size = (typeof (_res_PySequence_Size))APSW_FaultInjectControl("PySequence_Size", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_PySequence_Size))0x1FACADE == _res_PySequence_Size)                                                                         \
       _res_PySequence_Size = PySequence_Size(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_PySequence_Size))0x2FACADE == _res_PySequence_Size)                                                                     \
    {                                                                                                                                             \
        PySequence_Size(__VA_ARGS__);                                                                                                             \
        _res_PySequence_Size = (typeof (_res_PySequence_Size))18;                                                                                 \
    }                                                                                                                                             \
    _res_PySequence_Size;                                                                                                                         \
})
#define PySequence_Tuple(...) \
({                                                                                                                                                   \
    __auto_type _res_PySequence_Tuple = 0 ? PySequence_Tuple(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PySequence_Tuple = (typeof (_res_PySequence_Tuple))APSW_FaultInjectControl("PySequence_Tuple", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PySequence_Tuple))0x1FACADE == _res_PySequence_Tuple)                                                                          \
       _res_PySequence_Tuple = PySequence_Tuple(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PySequence_Tuple))0x2FACADE == _res_PySequence_Tuple)                                                                      \
    {                                                                                                                                                \
        PySequence_Tuple(__VA_ARGS__);                                                                                                               \
        _res_PySequence_Tuple = (typeof (_res_PySequence_Tuple))18;                                                                                  \
    }                                                                                                                                                \
    _res_PySequence_Tuple;                                                                                                                           \
})
#define PySet_Add(...) \
({                                                                                                                              \
    __auto_type _res_PySet_Add = 0 ? PySet_Add(__VA_ARGS__) : 0;                                                                \
                                                                                                                                \
    _res_PySet_Add = (typeof (_res_PySet_Add))APSW_FaultInjectControl("PySet_Add", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                \
    if ((typeof (_res_PySet_Add))0x1FACADE == _res_PySet_Add)                                                                   \
       _res_PySet_Add = PySet_Add(__VA_ARGS__);                                                                                 \
    else if ((typeof(_res_PySet_Add))0x2FACADE == _res_PySet_Add)                                                               \
    {                                                                                                                           \
        PySet_Add(__VA_ARGS__);                                                                                                 \
        _res_PySet_Add = (typeof (_res_PySet_Add))18;                                                                           \
    }                                                                                                                           \
    _res_PySet_Add;                                                                                                             \
})
#define PySet_Contains(...) \
({                                                                                                                                             \
    __auto_type _res_PySet_Contains = 0 ? PySet_Contains(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_PySet_Contains = (typeof (_res_PySet_Contains))APSW_FaultInjectControl("PySet_Contains", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_PySet_Contains))0x1FACADE == _res_PySet_Contains)                                                                        \
       _res_PySet_Contains = PySet_Contains(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_PySet_Contains))0x2FACADE == _res_PySet_Contains)                                                                    \
    {                                                                                                                                          \
        PySet_Contains(__VA_ARGS__);                                                                                                           \
        _res_PySet_Contains = (typeof (_res_PySet_Contains))18;                                                                                \
    }                                                                                                                                          \
    _res_PySet_Contains;                                                                                                                       \
})
#define PySet_Discard(...) \
({                                                                                                                                          \
    __auto_type _res_PySet_Discard = 0 ? PySet_Discard(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_PySet_Discard = (typeof (_res_PySet_Discard))APSW_FaultInjectControl("PySet_Discard", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_PySet_Discard))0x1FACADE == _res_PySet_Discard)                                                                       \
       _res_PySet_Discard = PySet_Discard(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_PySet_Discard))0x2FACADE == _res_PySet_Discard)                                                                   \
    {                                                                                                                                       \
        PySet_Discard(__VA_ARGS__);                                                                                                         \
        _res_PySet_Discard = (typeof (_res_PySet_Discard))18;                                                                               \
    }                                                                                                                                       \
    _res_PySet_Discard;                                                                                                                     \
})
#define PySet_New(...) \
({                                                                                                                              \
    __auto_type _res_PySet_New = 0 ? PySet_New(__VA_ARGS__) : 0;                                                                \
                                                                                                                                \
    _res_PySet_New = (typeof (_res_PySet_New))APSW_FaultInjectControl("PySet_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                \
    if ((typeof (_res_PySet_New))0x1FACADE == _res_PySet_New)                                                                   \
       _res_PySet_New = PySet_New(__VA_ARGS__);                                                                                 \
    else if ((typeof(_res_PySet_New))0x2FACADE == _res_PySet_New)                                                               \
    {                                                                                                                           \
        PySet_New(__VA_ARGS__);                                                                                                 \
        _res_PySet_New = (typeof (_res_PySet_New))18;                                                                           \
    }                                                                                                                           \
    _res_PySet_New;                                                                                                             \
})
#define PyStructSequence_InitType2(...) \
({                                                                                                                                                                                 \
    __auto_type _res_PyStructSequence_InitType2 = 0 ? PyStructSequence_InitType2(__VA_ARGS__) : 0;                                                                                 \
                                                                                                                                                                                   \
    _res_PyStructSequence_InitType2 = (typeof (_res_PyStructSequence_InitType2))APSW_FaultInjectControl("PyStructSequence_InitType2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                   \
    if ((typeof (_res_PyStructSequence_InitType2))0x1FACADE == _res_PyStructSequence_InitType2)                                                                                    \
       _res_PyStructSequence_InitType2 = PyStructSequence_InitType2(__VA_ARGS__);                                                                                                  \
    else if ((typeof(_res_PyStructSequence_InitType2))0x2FACADE == _res_PyStructSequence_InitType2)                                                                                \
    {                                                                                                                                                                              \
        PyStructSequence_InitType2(__VA_ARGS__);                                                                                                                                   \
        _res_PyStructSequence_InitType2 = (typeof (_res_PyStructSequence_InitType2))18;                                                                                            \
    }                                                                                                                                                                              \
    _res_PyStructSequence_InitType2;                                                                                                                                               \
})
#define PyStructSequence_New(...) \
({                                                                                                                                                               \
    __auto_type _res_PyStructSequence_New = 0 ? PyStructSequence_New(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_PyStructSequence_New = (typeof (_res_PyStructSequence_New))APSW_FaultInjectControl("PyStructSequence_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_PyStructSequence_New))0x1FACADE == _res_PyStructSequence_New)                                                                              \
       _res_PyStructSequence_New = PyStructSequence_New(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_PyStructSequence_New))0x2FACADE == _res_PyStructSequence_New)                                                                          \
    {                                                                                                                                                            \
        PyStructSequence_New(__VA_ARGS__);                                                                                                                       \
        _res_PyStructSequence_New = (typeof (_res_PyStructSequence_New))18;                                                                                      \
    }                                                                                                                                                            \
    _res_PyStructSequence_New;                                                                                                                                   \
})
#define PyStructSequence_NewType(...) \
({                                                                                                                                                                           \
    __auto_type _res_PyStructSequence_NewType = 0 ? PyStructSequence_NewType(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_PyStructSequence_NewType = (typeof (_res_PyStructSequence_NewType))APSW_FaultInjectControl("PyStructSequence_NewType", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_PyStructSequence_NewType))0x1FACADE == _res_PyStructSequence_NewType)                                                                                  \
       _res_PyStructSequence_NewType = PyStructSequence_NewType(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_PyStructSequence_NewType))0x2FACADE == _res_PyStructSequence_NewType)                                                                              \
    {                                                                                                                                                                        \
        PyStructSequence_NewType(__VA_ARGS__);                                                                                                                               \
        _res_PyStructSequence_NewType = (typeof (_res_PyStructSequence_NewType))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_PyStructSequence_NewType;                                                                                                                                           \
})
#define PyTuple_New(...) \
({                                                                                                                                    \
    __auto_type _res_PyTuple_New = 0 ? PyTuple_New(__VA_ARGS__) : 0;                                                                  \
                                                                                                                                      \
    _res_PyTuple_New = (typeof (_res_PyTuple_New))APSW_FaultInjectControl("PyTuple_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                      \
    if ((typeof (_res_PyTuple_New))0x1FACADE == _res_PyTuple_New)                                                                     \
       _res_PyTuple_New = PyTuple_New(__VA_ARGS__);                                                                                   \
    else if ((typeof(_res_PyTuple_New))0x2FACADE == _res_PyTuple_New)                                                                 \
    {                                                                                                                                 \
        PyTuple_New(__VA_ARGS__);                                                                                                     \
        _res_PyTuple_New = (typeof (_res_PyTuple_New))18;                                                                             \
    }                                                                                                                                 \
    _res_PyTuple_New;                                                                                                                 \
})
#define PyTuple_Pack(...) \
({                                                                                                                                       \
    __auto_type _res_PyTuple_Pack = 0 ? PyTuple_Pack(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_PyTuple_Pack = (typeof (_res_PyTuple_Pack))APSW_FaultInjectControl("PyTuple_Pack", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_PyTuple_Pack))0x1FACADE == _res_PyTuple_Pack)                                                                      \
       _res_PyTuple_Pack = PyTuple_Pack(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_PyTuple_Pack))0x2FACADE == _res_PyTuple_Pack)                                                                  \
    {                                                                                                                                    \
        PyTuple_Pack(__VA_ARGS__);                                                                                                       \
        _res_PyTuple_Pack = (typeof (_res_PyTuple_Pack))18;                                                                              \
    }                                                                                                                                    \
    _res_PyTuple_Pack;                                                                                                                   \
})
#define PyType_FromModuleAndSpec(...) \
({                                                                                                                                                                           \
    __auto_type _res_PyType_FromModuleAndSpec = 0 ? PyType_FromModuleAndSpec(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_PyType_FromModuleAndSpec = (typeof (_res_PyType_FromModuleAndSpec))APSW_FaultInjectControl("PyType_FromModuleAndSpec", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_PyType_FromModuleAndSpec))0x1FACADE == _res_PyType_FromModuleAndSpec)                                                                                  \
       _res_PyType_FromModuleAndSpec = PyType_FromModuleAndSpec(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_PyType_FromModuleAndSpec))0x2FACADE == _res_PyType_FromModuleAndSpec)                                                                              \
    {                                                                                                                                                                        \
        PyType_FromModuleAndSpec(__VA_ARGS__);                                                                                                                               \
        _res_PyType_FromModuleAndSpec = (typeof (_res_PyType_FromModuleAndSpec))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_PyType_FromModuleAndSpec;                                                                                                                                           \
})
#define PyType_GenericNew(...) \
({                                                                                                                                                      \
    __auto_type _res_PyType_GenericNew = 0 ? PyType_GenericNew(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_PyType_GenericNew = (typeof (_res_PyType_GenericNew))APSW_FaultInjectControl("PyType_GenericNew", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_PyType_GenericNew))0x1FACADE == _res_PyType_GenericNew)                                                                           \
       _res_PyType_GenericNew = PyType_GenericNew(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_PyType_GenericNew))0x2FACADE == _res_PyType_GenericNew)                                                                       \
    {                                                                                                                                                   \
        PyType_GenericNew(__VA_ARGS__);                                                                                                                 \
        _res_PyType_GenericNew = (typeof (_res_PyType_GenericNew))18;                                                                                   \
    }                                                                                                                                                   \
    _res_PyType_GenericNew;                                                                                                                             \
})
#define PyType_Ready(...) \
({                                                                                                                                       \
    __auto_type _res_PyType_Ready = 0 ? PyType_Ready(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_PyType_Ready = (typeof (_res_PyType_Ready))APSW_FaultInjectControl("PyType_Ready", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_PyType_Ready))0x1FACADE == _res_PyType_Ready)                                                                      \
       _res_PyType_Ready = PyType_Ready(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_PyType_Ready))0x2FACADE == _res_PyType_Ready)                                                                  \
    {                                                                                                                                    \
        PyType_Ready(__VA_ARGS__);                                                                                                       \
        _res_PyType_Ready = (typeof (_res_PyType_Ready))18;                                                                              \
    }                                                                                                                                    \
    _res_PyType_Ready;                                                                                                                   \
})
#define PyUnicode_AsUTF8(...) \
({                                                                                                                                                   \
    __auto_type _res_PyUnicode_AsUTF8 = 0 ? PyUnicode_AsUTF8(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyUnicode_AsUTF8 = (typeof (_res_PyUnicode_AsUTF8))APSW_FaultInjectControl("PyUnicode_AsUTF8", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyUnicode_AsUTF8))0x1FACADE == _res_PyUnicode_AsUTF8)                                                                          \
       _res_PyUnicode_AsUTF8 = PyUnicode_AsUTF8(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyUnicode_AsUTF8))0x2FACADE == _res_PyUnicode_AsUTF8)                                                                      \
    {                                                                                                                                                \
        PyUnicode_AsUTF8(__VA_ARGS__);                                                                                                               \
        _res_PyUnicode_AsUTF8 = (typeof (_res_PyUnicode_AsUTF8))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyUnicode_AsUTF8;                                                                                                                           \
})
#define PyUnicode_AsUTF8AndSize(...) \
({                                                                                                                                                                        \
    __auto_type _res_PyUnicode_AsUTF8AndSize = 0 ? PyUnicode_AsUTF8AndSize(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_PyUnicode_AsUTF8AndSize = (typeof (_res_PyUnicode_AsUTF8AndSize))APSW_FaultInjectControl("PyUnicode_AsUTF8AndSize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_PyUnicode_AsUTF8AndSize))0x1FACADE == _res_PyUnicode_AsUTF8AndSize)                                                                                 \
       _res_PyUnicode_AsUTF8AndSize = PyUnicode_AsUTF8AndSize(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_PyUnicode_AsUTF8AndSize))0x2FACADE == _res_PyUnicode_AsUTF8AndSize)                                                                             \
    {                                                                                                                                                                     \
        PyUnicode_AsUTF8AndSize(__VA_ARGS__);                                                                                                                             \
        _res_PyUnicode_AsUTF8AndSize = (typeof (_res_PyUnicode_AsUTF8AndSize))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_PyUnicode_AsUTF8AndSize;                                                                                                                                         \
})
#define PyUnicode_AsUTF8String(...) \
({                                                                                                                                                                     \
    __auto_type _res_PyUnicode_AsUTF8String = 0 ? PyUnicode_AsUTF8String(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_PyUnicode_AsUTF8String = (typeof (_res_PyUnicode_AsUTF8String))APSW_FaultInjectControl("PyUnicode_AsUTF8String", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_PyUnicode_AsUTF8String))0x1FACADE == _res_PyUnicode_AsUTF8String)                                                                                \
       _res_PyUnicode_AsUTF8String = PyUnicode_AsUTF8String(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_PyUnicode_AsUTF8String))0x2FACADE == _res_PyUnicode_AsUTF8String)                                                                            \
    {                                                                                                                                                                  \
        PyUnicode_AsUTF8String(__VA_ARGS__);                                                                                                                           \
        _res_PyUnicode_AsUTF8String = (typeof (_res_PyUnicode_AsUTF8String))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_PyUnicode_AsUTF8String;                                                                                                                                       \
})
#define PyUnicode_DecodeUTF8(...) \
({                                                                                                                                                               \
    __auto_type _res_PyUnicode_DecodeUTF8 = 0 ? PyUnicode_DecodeUTF8(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_PyUnicode_DecodeUTF8 = (typeof (_res_PyUnicode_DecodeUTF8))APSW_FaultInjectControl("PyUnicode_DecodeUTF8", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_PyUnicode_DecodeUTF8))0x1FACADE == _res_PyUnicode_DecodeUTF8)                                                                              \
       _res_PyUnicode_DecodeUTF8 = PyUnicode_DecodeUTF8(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_PyUnicode_DecodeUTF8))0x2FACADE == _res_PyUnicode_DecodeUTF8)                                                                          \
    {                                                                                                                                                            \
        PyUnicode_DecodeUTF8(__VA_ARGS__);                                                                                                                       \
        _res_PyUnicode_DecodeUTF8 = (typeof (_res_PyUnicode_DecodeUTF8))18;                                                                                      \
    }                                                                                                                                                            \
    _res_PyUnicode_DecodeUTF8;                                                                                                                                   \
})
#define PyUnicode_FromFormat(...) \
({                                                                                                                                                               \
    __auto_type _res_PyUnicode_FromFormat = 0 ? PyUnicode_FromFormat(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_PyUnicode_FromFormat = (typeof (_res_PyUnicode_FromFormat))APSW_FaultInjectControl("PyUnicode_FromFormat", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_PyUnicode_FromFormat))0x1FACADE == _res_PyUnicode_FromFormat)                                                                              \
       _res_PyUnicode_FromFormat = PyUnicode_FromFormat(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_PyUnicode_FromFormat))0x2FACADE == _res_PyUnicode_FromFormat)                                                                          \
    {                                                                                                                                                            \
        PyUnicode_FromFormat(__VA_ARGS__);                                                                                                                       \
        _res_PyUnicode_FromFormat = (typeof (_res_PyUnicode_FromFormat))18;                                                                                      \
    }                                                                                                                                                            \
    _res_PyUnicode_FromFormat;                                                                                                                                   \
})
#define PyUnicode_FromKindAndData(...) \
({                                                                                                                                                                              \
    __auto_type _res_PyUnicode_FromKindAndData = 0 ? PyUnicode_FromKindAndData(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_PyUnicode_FromKindAndData = (typeof (_res_PyUnicode_FromKindAndData))APSW_FaultInjectControl("PyUnicode_FromKindAndData", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_PyUnicode_FromKindAndData))0x1FACADE == _res_PyUnicode_FromKindAndData)                                                                                   \
       _res_PyUnicode_FromKindAndData = PyUnicode_FromKindAndData(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_PyUnicode_FromKindAndData))0x2FACADE == _res_PyUnicode_FromKindAndData)                                                                               \
    {                                                                                                                                                                           \
        PyUnicode_FromKindAndData(__VA_ARGS__);                                                                                                                                 \
        _res_PyUnicode_FromKindAndData = (typeof (_res_PyUnicode_FromKindAndData))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_PyUnicode_FromKindAndData;                                                                                                                                             \
})
#define PyUnicode_FromString(...) \
({                                                                                                                                                               \
    __auto_type _res_PyUnicode_FromString = 0 ? PyUnicode_FromString(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_PyUnicode_FromString = (typeof (_res_PyUnicode_FromString))APSW_FaultInjectControl("PyUnicode_FromString", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_PyUnicode_FromString))0x1FACADE == _res_PyUnicode_FromString)                                                                              \
       _res_PyUnicode_FromString = PyUnicode_FromString(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_PyUnicode_FromString))0x2FACADE == _res_PyUnicode_FromString)                                                                          \
    {                                                                                                                                                            \
        PyUnicode_FromString(__VA_ARGS__);                                                                                                                       \
        _res_PyUnicode_FromString = (typeof (_res_PyUnicode_FromString))18;                                                                                      \
    }                                                                                                                                                            \
    _res_PyUnicode_FromString;                                                                                                                                   \
})
#define PyUnicode_FromStringAndSize(...) \
({                                                                                                                                                                                    \
    __auto_type _res_PyUnicode_FromStringAndSize = 0 ? PyUnicode_FromStringAndSize(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_PyUnicode_FromStringAndSize = (typeof (_res_PyUnicode_FromStringAndSize))APSW_FaultInjectControl("PyUnicode_FromStringAndSize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_PyUnicode_FromStringAndSize))0x1FACADE == _res_PyUnicode_FromStringAndSize)                                                                                     \
       _res_PyUnicode_FromStringAndSize = PyUnicode_FromStringAndSize(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_PyUnicode_FromStringAndSize))0x2FACADE == _res_PyUnicode_FromStringAndSize)                                                                                 \
    {                                                                                                                                                                                 \
        PyUnicode_FromStringAndSize(__VA_ARGS__);                                                                                                                                     \
        _res_PyUnicode_FromStringAndSize = (typeof (_res_PyUnicode_FromStringAndSize))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_PyUnicode_FromStringAndSize;                                                                                                                                                 \
})
#define PyUnicode_New(...) \
({                                                                                                                                          \
    __auto_type _res_PyUnicode_New = 0 ? PyUnicode_New(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_PyUnicode_New = (typeof (_res_PyUnicode_New))APSW_FaultInjectControl("PyUnicode_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_PyUnicode_New))0x1FACADE == _res_PyUnicode_New)                                                                       \
       _res_PyUnicode_New = PyUnicode_New(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_PyUnicode_New))0x2FACADE == _res_PyUnicode_New)                                                                   \
    {                                                                                                                                       \
        PyUnicode_New(__VA_ARGS__);                                                                                                         \
        _res_PyUnicode_New = (typeof (_res_PyUnicode_New))18;                                                                               \
    }                                                                                                                                       \
    _res_PyUnicode_New;                                                                                                                     \
})
#define PyWeakref_GetObject(...) \
({                                                                                                                                                            \
    __auto_type _res_PyWeakref_GetObject = 0 ? PyWeakref_GetObject(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_PyWeakref_GetObject = (typeof (_res_PyWeakref_GetObject))APSW_FaultInjectControl("PyWeakref_GetObject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_PyWeakref_GetObject))0x1FACADE == _res_PyWeakref_GetObject)                                                                             \
       _res_PyWeakref_GetObject = PyWeakref_GetObject(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_PyWeakref_GetObject))0x2FACADE == _res_PyWeakref_GetObject)                                                                         \
    {                                                                                                                                                         \
        PyWeakref_GetObject(__VA_ARGS__);                                                                                                                     \
        _res_PyWeakref_GetObject = (typeof (_res_PyWeakref_GetObject))18;                                                                                     \
    }                                                                                                                                                         \
    _res_PyWeakref_GetObject;                                                                                                                                 \
})
#define PyWeakref_NewRef(...) \
({                                                                                                                                                   \
    __auto_type _res_PyWeakref_NewRef = 0 ? PyWeakref_NewRef(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_PyWeakref_NewRef = (typeof (_res_PyWeakref_NewRef))APSW_FaultInjectControl("PyWeakref_NewRef", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_PyWeakref_NewRef))0x1FACADE == _res_PyWeakref_NewRef)                                                                          \
       _res_PyWeakref_NewRef = PyWeakref_NewRef(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_PyWeakref_NewRef))0x2FACADE == _res_PyWeakref_NewRef)                                                                      \
    {                                                                                                                                                \
        PyWeakref_NewRef(__VA_ARGS__);                                                                                                               \
        _res_PyWeakref_NewRef = (typeof (_res_PyWeakref_NewRef))18;                                                                                  \
    }                                                                                                                                                \
    _res_PyWeakref_NewRef;                                                                                                                           \
})
#if PY_VERSION_HEX < 0x030d0000
#undef Py_BuildValue
#define Py_BuildValue(...) \
({                                                                                                                                                        \
    __auto_type _res__Py_BuildValue_SizeT = 0 ? _Py_BuildValue_SizeT(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                                          \
    _res__Py_BuildValue_SizeT = (typeof (_res__Py_BuildValue_SizeT))APSW_FaultInjectControl("Py_BuildValue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                          \
    if ((typeof (_res__Py_BuildValue_SizeT))0x1FACADE == _res__Py_BuildValue_SizeT)                                                                       \
       _res__Py_BuildValue_SizeT = _Py_BuildValue_SizeT(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res__Py_BuildValue_SizeT))0x2FACADE == _res__Py_BuildValue_SizeT)                                                                   \
    {                                                                                                                                                     \
        _Py_BuildValue_SizeT(__VA_ARGS__);                                                                                                                \
        _res__Py_BuildValue_SizeT = (typeof (_res__Py_BuildValue_SizeT))18;                                                                               \
    }                                                                                                                                                     \
    _res__Py_BuildValue_SizeT;                                                                                                                            \
})
#else
#define Py_BuildValue(...) \
({                                                                                                                                          \
    __auto_type _res_Py_BuildValue = 0 ? Py_BuildValue(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_Py_BuildValue = (typeof (_res_Py_BuildValue))APSW_FaultInjectControl("Py_BuildValue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_Py_BuildValue))0x1FACADE == _res_Py_BuildValue)                                                                       \
       _res_Py_BuildValue = Py_BuildValue(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_Py_BuildValue))0x2FACADE == _res_Py_BuildValue)                                                                   \
    {                                                                                                                                       \
        Py_BuildValue(__VA_ARGS__);                                                                                                         \
        _res_Py_BuildValue = (typeof (_res_Py_BuildValue))18;                                                                               \
    }                                                                                                                                       \
    _res_Py_BuildValue;                                                                                                                     \
})
#endif
#define Py_EnterRecursiveCall(...) \
({                                                                                                                                                                  \
    __auto_type _res_Py_EnterRecursiveCall = 0 ? Py_EnterRecursiveCall(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_Py_EnterRecursiveCall = (typeof (_res_Py_EnterRecursiveCall))APSW_FaultInjectControl("Py_EnterRecursiveCall", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_Py_EnterRecursiveCall))0x1FACADE == _res_Py_EnterRecursiveCall)                                                                               \
       _res_Py_EnterRecursiveCall = Py_EnterRecursiveCall(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_Py_EnterRecursiveCall))0x2FACADE == _res_Py_EnterRecursiveCall)                                                                           \
    {                                                                                                                                                               \
        Py_EnterRecursiveCall(__VA_ARGS__);                                                                                                                         \
        _res_Py_EnterRecursiveCall = (typeof (_res_Py_EnterRecursiveCall))18;                                                                                       \
    }                                                                                                                                                               \
    _res_Py_EnterRecursiveCall;                                                                                                                                     \
})
#if PY_VERSION_HEX < 0x030d0000
#undef Py_VaBuildValue
#define Py_VaBuildValue(...) \
({                                                                                                                                                              \
    __auto_type _res__Py_VaBuildValue_SizeT = 0 ? _Py_VaBuildValue_SizeT(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                                \
    _res__Py_VaBuildValue_SizeT = (typeof (_res__Py_VaBuildValue_SizeT))APSW_FaultInjectControl("Py_VaBuildValue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                \
    if ((typeof (_res__Py_VaBuildValue_SizeT))0x1FACADE == _res__Py_VaBuildValue_SizeT)                                                                         \
       _res__Py_VaBuildValue_SizeT = _Py_VaBuildValue_SizeT(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res__Py_VaBuildValue_SizeT))0x2FACADE == _res__Py_VaBuildValue_SizeT)                                                                     \
    {                                                                                                                                                           \
        _Py_VaBuildValue_SizeT(__VA_ARGS__);                                                                                                                    \
        _res__Py_VaBuildValue_SizeT = (typeof (_res__Py_VaBuildValue_SizeT))18;                                                                                 \
    }                                                                                                                                                           \
    _res__Py_VaBuildValue_SizeT;                                                                                                                                \
})
#else
#define Py_VaBuildValue(...) \
({                                                                                                                                                \
    __auto_type _res_Py_VaBuildValue = 0 ? Py_VaBuildValue(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_Py_VaBuildValue = (typeof (_res_Py_VaBuildValue))APSW_FaultInjectControl("Py_VaBuildValue", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_Py_VaBuildValue))0x1FACADE == _res_Py_VaBuildValue)                                                                         \
       _res_Py_VaBuildValue = Py_VaBuildValue(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_Py_VaBuildValue))0x2FACADE == _res_Py_VaBuildValue)                                                                     \
    {                                                                                                                                             \
        Py_VaBuildValue(__VA_ARGS__);                                                                                                             \
        _res_Py_VaBuildValue = (typeof (_res_Py_VaBuildValue))18;                                                                                 \
    }                                                                                                                                             \
    _res_Py_VaBuildValue;                                                                                                                         \
})
#endif
#define _PyBytes_Resize(...) \
({                                                                                                                                                \
    __auto_type _res__PyBytes_Resize = 0 ? _PyBytes_Resize(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res__PyBytes_Resize = (typeof (_res__PyBytes_Resize))APSW_FaultInjectControl("_PyBytes_Resize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res__PyBytes_Resize))0x1FACADE == _res__PyBytes_Resize)                                                                         \
       _res__PyBytes_Resize = _PyBytes_Resize(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res__PyBytes_Resize))0x2FACADE == _res__PyBytes_Resize)                                                                     \
    {                                                                                                                                             \
        _PyBytes_Resize(__VA_ARGS__);                                                                                                             \
        _res__PyBytes_Resize = (typeof (_res__PyBytes_Resize))18;                                                                                 \
    }                                                                                                                                             \
    _res__PyBytes_Resize;                                                                                                                         \
})
#define _PyObject_New(...) \
({                                                                                                                                          \
    __auto_type _res__PyObject_New = 0 ? _PyObject_New(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res__PyObject_New = (typeof (_res__PyObject_New))APSW_FaultInjectControl("_PyObject_New", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res__PyObject_New))0x1FACADE == _res__PyObject_New)                                                                       \
       _res__PyObject_New = _PyObject_New(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res__PyObject_New))0x2FACADE == _res__PyObject_New)                                                                   \
    {                                                                                                                                       \
        _PyObject_New(__VA_ARGS__);                                                                                                         \
        _res__PyObject_New = (typeof (_res__PyObject_New))18;                                                                               \
    }                                                                                                                                       \
    _res__PyObject_New;                                                                                                                     \
})
#define _PyTuple_Resize(...) \
({                                                                                                                                                \
    __auto_type _res__PyTuple_Resize = 0 ? _PyTuple_Resize(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res__PyTuple_Resize = (typeof (_res__PyTuple_Resize))APSW_FaultInjectControl("_PyTuple_Resize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res__PyTuple_Resize))0x1FACADE == _res__PyTuple_Resize)                                                                         \
       _res__PyTuple_Resize = _PyTuple_Resize(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res__PyTuple_Resize))0x2FACADE == _res__PyTuple_Resize)                                                                     \
    {                                                                                                                                             \
        _PyTuple_Resize(__VA_ARGS__);                                                                                                             \
        _res__PyTuple_Resize = (typeof (_res__PyTuple_Resize))18;                                                                                 \
    }                                                                                                                                             \
    _res__PyTuple_Resize;                                                                                                                         \
})
#define allocfunccbinfo(...) \
({                                                                                                                                                \
    __auto_type _res_allocfunccbinfo = 0 ? allocfunccbinfo(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_allocfunccbinfo = (typeof (_res_allocfunccbinfo))APSW_FaultInjectControl("allocfunccbinfo", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_allocfunccbinfo))0x1FACADE == _res_allocfunccbinfo)                                                                         \
       _res_allocfunccbinfo = allocfunccbinfo(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_allocfunccbinfo))0x2FACADE == _res_allocfunccbinfo)                                                                     \
    {                                                                                                                                             \
        allocfunccbinfo(__VA_ARGS__);                                                                                                             \
        _res_allocfunccbinfo = (typeof (_res_allocfunccbinfo))18;                                                                                 \
    }                                                                                                                                             \
    _res_allocfunccbinfo;                                                                                                                         \
})
#define apsw_strdup(...) \
({                                                                                                                                    \
    __auto_type _res_apsw_strdup = 0 ? apsw_strdup(__VA_ARGS__) : 0;                                                                  \
                                                                                                                                      \
    _res_apsw_strdup = (typeof (_res_apsw_strdup))APSW_FaultInjectControl("apsw_strdup", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                      \
    if ((typeof (_res_apsw_strdup))0x1FACADE == _res_apsw_strdup)                                                                     \
       _res_apsw_strdup = apsw_strdup(__VA_ARGS__);                                                                                   \
    else if ((typeof(_res_apsw_strdup))0x2FACADE == _res_apsw_strdup)                                                                 \
    {                                                                                                                                 \
        apsw_strdup(__VA_ARGS__);                                                                                                     \
        _res_apsw_strdup = (typeof (_res_apsw_strdup))18;                                                                             \
    }                                                                                                                                 \
    _res_apsw_strdup;                                                                                                                 \
})
#define convert_column_to_pyobject(...) \
({                                                                                                                                                                                 \
    __auto_type _res_convert_column_to_pyobject = 0 ? convert_column_to_pyobject(__VA_ARGS__) : 0;                                                                                 \
                                                                                                                                                                                   \
    _res_convert_column_to_pyobject = (typeof (_res_convert_column_to_pyobject))APSW_FaultInjectControl("convert_column_to_pyobject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                   \
    if ((typeof (_res_convert_column_to_pyobject))0x1FACADE == _res_convert_column_to_pyobject)                                                                                    \
       _res_convert_column_to_pyobject = convert_column_to_pyobject(__VA_ARGS__);                                                                                                  \
    else if ((typeof(_res_convert_column_to_pyobject))0x2FACADE == _res_convert_column_to_pyobject)                                                                                \
    {                                                                                                                                                                              \
        convert_column_to_pyobject(__VA_ARGS__);                                                                                                                                   \
        _res_convert_column_to_pyobject = (typeof (_res_convert_column_to_pyobject))18;                                                                                            \
    }                                                                                                                                                                              \
    _res_convert_column_to_pyobject;                                                                                                                                               \
})
#define convert_value_to_pyobject(...) \
({                                                                                                                                                                              \
    __auto_type _res_convert_value_to_pyobject = 0 ? convert_value_to_pyobject(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_convert_value_to_pyobject = (typeof (_res_convert_value_to_pyobject))APSW_FaultInjectControl("convert_value_to_pyobject", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_convert_value_to_pyobject))0x1FACADE == _res_convert_value_to_pyobject)                                                                                   \
       _res_convert_value_to_pyobject = convert_value_to_pyobject(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_convert_value_to_pyobject))0x2FACADE == _res_convert_value_to_pyobject)                                                                               \
    {                                                                                                                                                                           \
        convert_value_to_pyobject(__VA_ARGS__);                                                                                                                                 \
        _res_convert_value_to_pyobject = (typeof (_res_convert_value_to_pyobject))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_convert_value_to_pyobject;                                                                                                                                             \
})
#define convertutf8string(...) \
({                                                                                                                                                      \
    __auto_type _res_convertutf8string = 0 ? convertutf8string(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_convertutf8string = (typeof (_res_convertutf8string))APSW_FaultInjectControl("convertutf8string", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_convertutf8string))0x1FACADE == _res_convertutf8string)                                                                           \
       _res_convertutf8string = convertutf8string(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_convertutf8string))0x2FACADE == _res_convertutf8string)                                                                       \
    {                                                                                                                                                   \
        convertutf8string(__VA_ARGS__);                                                                                                                 \
        _res_convertutf8string = (typeof (_res_convertutf8string))18;                                                                                   \
    }                                                                                                                                                   \
    _res_convertutf8string;                                                                                                                             \
})
#define fts5extensionapi_acquire(...) \
({                                                                                                                                                                           \
    __auto_type _res_fts5extensionapi_acquire = 0 ? fts5extensionapi_acquire(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_fts5extensionapi_acquire = (typeof (_res_fts5extensionapi_acquire))APSW_FaultInjectControl("fts5extensionapi_acquire", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_fts5extensionapi_acquire))0x1FACADE == _res_fts5extensionapi_acquire)                                                                                  \
       _res_fts5extensionapi_acquire = fts5extensionapi_acquire(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_fts5extensionapi_acquire))0x2FACADE == _res_fts5extensionapi_acquire)                                                                              \
    {                                                                                                                                                                        \
        fts5extensionapi_acquire(__VA_ARGS__);                                                                                                                               \
        _res_fts5extensionapi_acquire = (typeof (_res_fts5extensionapi_acquire))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_fts5extensionapi_acquire;                                                                                                                                           \
})
#define get_token_value(...) \
({                                                                                                                                                \
    __auto_type _res_get_token_value = 0 ? get_token_value(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_get_token_value = (typeof (_res_get_token_value))APSW_FaultInjectControl("get_token_value", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_get_token_value))0x1FACADE == _res_get_token_value)                                                                         \
       _res_get_token_value = get_token_value(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_get_token_value))0x2FACADE == _res_get_token_value)                                                                     \
    {                                                                                                                                             \
        get_token_value(__VA_ARGS__);                                                                                                             \
        _res_get_token_value = (typeof (_res_get_token_value))18;                                                                                 \
    }                                                                                                                                             \
    _res_get_token_value;                                                                                                                         \
})
#define get_window_function_context(...) \
({                                                                                                                                                                                    \
    __auto_type _res_get_window_function_context = 0 ? get_window_function_context(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_get_window_function_context = (typeof (_res_get_window_function_context))APSW_FaultInjectControl("get_window_function_context", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_get_window_function_context))0x1FACADE == _res_get_window_function_context)                                                                                     \
       _res_get_window_function_context = get_window_function_context(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_get_window_function_context))0x2FACADE == _res_get_window_function_context)                                                                                 \
    {                                                                                                                                                                                 \
        get_window_function_context(__VA_ARGS__);                                                                                                                                     \
        _res_get_window_function_context = (typeof (_res_get_window_function_context))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_get_window_function_context;                                                                                                                                                 \
})
#define getfunctionargs(...) \
({                                                                                                                                                \
    __auto_type _res_getfunctionargs = 0 ? getfunctionargs(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_getfunctionargs = (typeof (_res_getfunctionargs))APSW_FaultInjectControl("getfunctionargs", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_getfunctionargs))0x1FACADE == _res_getfunctionargs)                                                                         \
       _res_getfunctionargs = getfunctionargs(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_getfunctionargs))0x2FACADE == _res_getfunctionargs)                                                                     \
    {                                                                                                                                             \
        getfunctionargs(__VA_ARGS__);                                                                                                             \
        _res_getfunctionargs = (typeof (_res_getfunctionargs))18;                                                                                 \
    }                                                                                                                                             \
    _res_getfunctionargs;                                                                                                                         \
})
#define jsonb_add_tag(...) \
({                                                                                                                                          \
    __auto_type _res_jsonb_add_tag = 0 ? jsonb_add_tag(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_jsonb_add_tag = (typeof (_res_jsonb_add_tag))APSW_FaultInjectControl("jsonb_add_tag", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_jsonb_add_tag))0x1FACADE == _res_jsonb_add_tag)                                                                       \
       _res_jsonb_add_tag = jsonb_add_tag(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_jsonb_add_tag))0x2FACADE == _res_jsonb_add_tag)                                                                   \
    {                                                                                                                                       \
        jsonb_add_tag(__VA_ARGS__);                                                                                                         \
        _res_jsonb_add_tag = (typeof (_res_jsonb_add_tag))18;                                                                               \
    }                                                                                                                                       \
    _res_jsonb_add_tag;                                                                                                                     \
})
#define jsonb_add_tag_and_data(...) \
({                                                                                                                                                                     \
    __auto_type _res_jsonb_add_tag_and_data = 0 ? jsonb_add_tag_and_data(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_jsonb_add_tag_and_data = (typeof (_res_jsonb_add_tag_and_data))APSW_FaultInjectControl("jsonb_add_tag_and_data", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_jsonb_add_tag_and_data))0x1FACADE == _res_jsonb_add_tag_and_data)                                                                                \
       _res_jsonb_add_tag_and_data = jsonb_add_tag_and_data(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_jsonb_add_tag_and_data))0x2FACADE == _res_jsonb_add_tag_and_data)                                                                            \
    {                                                                                                                                                                  \
        jsonb_add_tag_and_data(__VA_ARGS__);                                                                                                                           \
        _res_jsonb_add_tag_and_data = (typeof (_res_jsonb_add_tag_and_data))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_jsonb_add_tag_and_data;                                                                                                                                       \
})
#define jsonb_append_data(...) \
({                                                                                                                                                      \
    __auto_type _res_jsonb_append_data = 0 ? jsonb_append_data(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_jsonb_append_data = (typeof (_res_jsonb_append_data))APSW_FaultInjectControl("jsonb_append_data", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_jsonb_append_data))0x1FACADE == _res_jsonb_append_data)                                                                           \
       _res_jsonb_append_data = jsonb_append_data(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_jsonb_append_data))0x2FACADE == _res_jsonb_append_data)                                                                       \
    {                                                                                                                                                   \
        jsonb_append_data(__VA_ARGS__);                                                                                                                 \
        _res_jsonb_append_data = (typeof (_res_jsonb_append_data))18;                                                                                   \
    }                                                                                                                                                   \
    _res_jsonb_append_data;                                                                                                                             \
})
#define jsonb_encode_internal(...) \
({                                                                                                                                                                  \
    __auto_type _res_jsonb_encode_internal = 0 ? jsonb_encode_internal(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_jsonb_encode_internal = (typeof (_res_jsonb_encode_internal))APSW_FaultInjectControl("jsonb_encode_internal", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_jsonb_encode_internal))0x1FACADE == _res_jsonb_encode_internal)                                                                               \
       _res_jsonb_encode_internal = jsonb_encode_internal(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_jsonb_encode_internal))0x2FACADE == _res_jsonb_encode_internal)                                                                           \
    {                                                                                                                                                               \
        jsonb_encode_internal(__VA_ARGS__);                                                                                                                         \
        _res_jsonb_encode_internal = (typeof (_res_jsonb_encode_internal))18;                                                                                       \
    }                                                                                                                                                               \
    _res_jsonb_encode_internal;                                                                                                                                     \
})
#define jsonb_encode_object_key(...) \
({                                                                                                                                                                        \
    __auto_type _res_jsonb_encode_object_key = 0 ? jsonb_encode_object_key(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_jsonb_encode_object_key = (typeof (_res_jsonb_encode_object_key))APSW_FaultInjectControl("jsonb_encode_object_key", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_jsonb_encode_object_key))0x1FACADE == _res_jsonb_encode_object_key)                                                                                 \
       _res_jsonb_encode_object_key = jsonb_encode_object_key(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_jsonb_encode_object_key))0x2FACADE == _res_jsonb_encode_object_key)                                                                             \
    {                                                                                                                                                                     \
        jsonb_encode_object_key(__VA_ARGS__);                                                                                                                             \
        _res_jsonb_encode_object_key = (typeof (_res_jsonb_encode_object_key))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_jsonb_encode_object_key;                                                                                                                                         \
})
#define jsonb_grow_buffer(...) \
({                                                                                                                                                      \
    __auto_type _res_jsonb_grow_buffer = 0 ? jsonb_grow_buffer(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_jsonb_grow_buffer = (typeof (_res_jsonb_grow_buffer))APSW_FaultInjectControl("jsonb_grow_buffer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_jsonb_grow_buffer))0x1FACADE == _res_jsonb_grow_buffer)                                                                           \
       _res_jsonb_grow_buffer = jsonb_grow_buffer(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_jsonb_grow_buffer))0x2FACADE == _res_jsonb_grow_buffer)                                                                       \
    {                                                                                                                                                   \
        jsonb_grow_buffer(__VA_ARGS__);                                                                                                                 \
        _res_jsonb_grow_buffer = (typeof (_res_jsonb_grow_buffer))18;                                                                                   \
    }                                                                                                                                                   \
    _res_jsonb_grow_buffer;                                                                                                                             \
})
#define jsonb_update_tag(...) \
({                                                                                                                                                   \
    __auto_type _res_jsonb_update_tag = 0 ? jsonb_update_tag(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_jsonb_update_tag = (typeof (_res_jsonb_update_tag))APSW_FaultInjectControl("jsonb_update_tag", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_jsonb_update_tag))0x1FACADE == _res_jsonb_update_tag)                                                                          \
       _res_jsonb_update_tag = jsonb_update_tag(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_jsonb_update_tag))0x2FACADE == _res_jsonb_update_tag)                                                                      \
    {                                                                                                                                                \
        jsonb_update_tag(__VA_ARGS__);                                                                                                               \
        _res_jsonb_update_tag = (typeof (_res_jsonb_update_tag))18;                                                                                  \
    }                                                                                                                                                \
    _res_jsonb_update_tag;                                                                                                                           \
})
#define make_boxed_call(...) \
({                                                                                                                                                \
    __auto_type _res_make_boxed_call = 0 ? make_boxed_call(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_make_boxed_call = (typeof (_res_make_boxed_call))APSW_FaultInjectControl("make_boxed_call", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_make_boxed_call))0x1FACADE == _res_make_boxed_call)                                                                         \
       _res_make_boxed_call = make_boxed_call(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_make_boxed_call))0x2FACADE == _res_make_boxed_call)                                                                     \
    {                                                                                                                                             \
        make_boxed_call(__VA_ARGS__);                                                                                                             \
        _res_make_boxed_call = (typeof (_res_make_boxed_call))18;                                                                                 \
    }                                                                                                                                             \
    _res_make_boxed_call;                                                                                                                         \
})
#define realloc(...) \
({                                                                                                                        \
    __auto_type _res_realloc = 0 ? realloc(__VA_ARGS__) : 0;                                                              \
                                                                                                                          \
    _res_realloc = (typeof (_res_realloc))APSW_FaultInjectControl("realloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                          \
    if ((typeof (_res_realloc))0x1FACADE == _res_realloc)                                                                 \
       _res_realloc = realloc(__VA_ARGS__);                                                                               \
    else if ((typeof(_res_realloc))0x2FACADE == _res_realloc)                                                             \
    {                                                                                                                     \
        realloc(__VA_ARGS__);                                                                                             \
        _res_realloc = (typeof (_res_realloc))18;                                                                         \
    }                                                                                                                     \
    _res_realloc;                                                                                                         \
})
#define sqlite3_aggregate_context(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3_aggregate_context = 0 ? sqlite3_aggregate_context(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3_aggregate_context = (typeof (_res_sqlite3_aggregate_context))APSW_FaultInjectControl("sqlite3_aggregate_context", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3_aggregate_context))0x1FACADE == _res_sqlite3_aggregate_context)                                                                                   \
       _res_sqlite3_aggregate_context = sqlite3_aggregate_context(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3_aggregate_context))0x2FACADE == _res_sqlite3_aggregate_context)                                                                               \
    {                                                                                                                                                                           \
        sqlite3_aggregate_context(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3_aggregate_context = (typeof (_res_sqlite3_aggregate_context))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3_aggregate_context;                                                                                                                                             \
})
#define sqlite3_autovacuum_pages(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3_autovacuum_pages = 0 ? sqlite3_autovacuum_pages(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3_autovacuum_pages = (typeof (_res_sqlite3_autovacuum_pages))APSW_FaultInjectControl("sqlite3_autovacuum_pages", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3_autovacuum_pages))0x1FACADE == _res_sqlite3_autovacuum_pages)                                                                                  \
       _res_sqlite3_autovacuum_pages = sqlite3_autovacuum_pages(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3_autovacuum_pages))0x2FACADE == _res_sqlite3_autovacuum_pages)                                                                              \
    {                                                                                                                                                                        \
        sqlite3_autovacuum_pages(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3_autovacuum_pages = (typeof (_res_sqlite3_autovacuum_pages))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3_autovacuum_pages;                                                                                                                                           \
})
#define sqlite3_backup_finish(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3_backup_finish = 0 ? sqlite3_backup_finish(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3_backup_finish = (typeof (_res_sqlite3_backup_finish))APSW_FaultInjectControl("sqlite3_backup_finish", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3_backup_finish))0x1FACADE == _res_sqlite3_backup_finish)                                                                               \
       _res_sqlite3_backup_finish = sqlite3_backup_finish(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3_backup_finish))0x2FACADE == _res_sqlite3_backup_finish)                                                                           \
    {                                                                                                                                                               \
        sqlite3_backup_finish(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3_backup_finish = (typeof (_res_sqlite3_backup_finish))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3_backup_finish;                                                                                                                                     \
})
#define sqlite3_backup_init(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_backup_init = 0 ? sqlite3_backup_init(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_backup_init = (typeof (_res_sqlite3_backup_init))APSW_FaultInjectControl("sqlite3_backup_init", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_backup_init))0x1FACADE == _res_sqlite3_backup_init)                                                                             \
       _res_sqlite3_backup_init = sqlite3_backup_init(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_backup_init))0x2FACADE == _res_sqlite3_backup_init)                                                                         \
    {                                                                                                                                                         \
        sqlite3_backup_init(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_backup_init = (typeof (_res_sqlite3_backup_init))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_backup_init;                                                                                                                                 \
})
#define sqlite3_backup_step(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_backup_step = 0 ? sqlite3_backup_step(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_backup_step = (typeof (_res_sqlite3_backup_step))APSW_FaultInjectControl("sqlite3_backup_step", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_backup_step))0x1FACADE == _res_sqlite3_backup_step)                                                                             \
       _res_sqlite3_backup_step = sqlite3_backup_step(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_backup_step))0x2FACADE == _res_sqlite3_backup_step)                                                                         \
    {                                                                                                                                                         \
        sqlite3_backup_step(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_backup_step = (typeof (_res_sqlite3_backup_step))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_backup_step;                                                                                                                                 \
})
#define sqlite3_bind_blob(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_bind_blob = 0 ? sqlite3_bind_blob(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_bind_blob = (typeof (_res_sqlite3_bind_blob))APSW_FaultInjectControl("sqlite3_bind_blob", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_bind_blob))0x1FACADE == _res_sqlite3_bind_blob)                                                                           \
       _res_sqlite3_bind_blob = sqlite3_bind_blob(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_bind_blob))0x2FACADE == _res_sqlite3_bind_blob)                                                                       \
    {                                                                                                                                                   \
        sqlite3_bind_blob(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_bind_blob = (typeof (_res_sqlite3_bind_blob))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_bind_blob;                                                                                                                             \
})
#define sqlite3_bind_blob64(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_bind_blob64 = 0 ? sqlite3_bind_blob64(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_bind_blob64 = (typeof (_res_sqlite3_bind_blob64))APSW_FaultInjectControl("sqlite3_bind_blob64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_bind_blob64))0x1FACADE == _res_sqlite3_bind_blob64)                                                                             \
       _res_sqlite3_bind_blob64 = sqlite3_bind_blob64(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_bind_blob64))0x2FACADE == _res_sqlite3_bind_blob64)                                                                         \
    {                                                                                                                                                         \
        sqlite3_bind_blob64(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_bind_blob64 = (typeof (_res_sqlite3_bind_blob64))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_bind_blob64;                                                                                                                                 \
})
#define sqlite3_bind_double(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_bind_double = 0 ? sqlite3_bind_double(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_bind_double = (typeof (_res_sqlite3_bind_double))APSW_FaultInjectControl("sqlite3_bind_double", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_bind_double))0x1FACADE == _res_sqlite3_bind_double)                                                                             \
       _res_sqlite3_bind_double = sqlite3_bind_double(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_bind_double))0x2FACADE == _res_sqlite3_bind_double)                                                                         \
    {                                                                                                                                                         \
        sqlite3_bind_double(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_bind_double = (typeof (_res_sqlite3_bind_double))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_bind_double;                                                                                                                                 \
})
#define sqlite3_bind_int(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_bind_int = 0 ? sqlite3_bind_int(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_bind_int = (typeof (_res_sqlite3_bind_int))APSW_FaultInjectControl("sqlite3_bind_int", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_bind_int))0x1FACADE == _res_sqlite3_bind_int)                                                                          \
       _res_sqlite3_bind_int = sqlite3_bind_int(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_bind_int))0x2FACADE == _res_sqlite3_bind_int)                                                                      \
    {                                                                                                                                                \
        sqlite3_bind_int(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_bind_int = (typeof (_res_sqlite3_bind_int))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_bind_int;                                                                                                                           \
})
#define sqlite3_bind_int64(...) \
({                                                                                                                                                         \
    __auto_type _res_sqlite3_bind_int64 = 0 ? sqlite3_bind_int64(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_sqlite3_bind_int64 = (typeof (_res_sqlite3_bind_int64))APSW_FaultInjectControl("sqlite3_bind_int64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_sqlite3_bind_int64))0x1FACADE == _res_sqlite3_bind_int64)                                                                            \
       _res_sqlite3_bind_int64 = sqlite3_bind_int64(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_sqlite3_bind_int64))0x2FACADE == _res_sqlite3_bind_int64)                                                                        \
    {                                                                                                                                                      \
        sqlite3_bind_int64(__VA_ARGS__);                                                                                                                   \
        _res_sqlite3_bind_int64 = (typeof (_res_sqlite3_bind_int64))18;                                                                                    \
    }                                                                                                                                                      \
    _res_sqlite3_bind_int64;                                                                                                                               \
})
#define sqlite3_bind_null(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_bind_null = 0 ? sqlite3_bind_null(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_bind_null = (typeof (_res_sqlite3_bind_null))APSW_FaultInjectControl("sqlite3_bind_null", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_bind_null))0x1FACADE == _res_sqlite3_bind_null)                                                                           \
       _res_sqlite3_bind_null = sqlite3_bind_null(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_bind_null))0x2FACADE == _res_sqlite3_bind_null)                                                                       \
    {                                                                                                                                                   \
        sqlite3_bind_null(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_bind_null = (typeof (_res_sqlite3_bind_null))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_bind_null;                                                                                                                             \
})
#define sqlite3_bind_pointer(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_bind_pointer = 0 ? sqlite3_bind_pointer(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_bind_pointer = (typeof (_res_sqlite3_bind_pointer))APSW_FaultInjectControl("sqlite3_bind_pointer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_bind_pointer))0x1FACADE == _res_sqlite3_bind_pointer)                                                                              \
       _res_sqlite3_bind_pointer = sqlite3_bind_pointer(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_bind_pointer))0x2FACADE == _res_sqlite3_bind_pointer)                                                                          \
    {                                                                                                                                                            \
        sqlite3_bind_pointer(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_bind_pointer = (typeof (_res_sqlite3_bind_pointer))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_bind_pointer;                                                                                                                                   \
})
#define sqlite3_bind_text(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_bind_text = 0 ? sqlite3_bind_text(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_bind_text = (typeof (_res_sqlite3_bind_text))APSW_FaultInjectControl("sqlite3_bind_text", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_bind_text))0x1FACADE == _res_sqlite3_bind_text)                                                                           \
       _res_sqlite3_bind_text = sqlite3_bind_text(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_bind_text))0x2FACADE == _res_sqlite3_bind_text)                                                                       \
    {                                                                                                                                                   \
        sqlite3_bind_text(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_bind_text = (typeof (_res_sqlite3_bind_text))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_bind_text;                                                                                                                             \
})
#define sqlite3_bind_text64(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_bind_text64 = 0 ? sqlite3_bind_text64(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_bind_text64 = (typeof (_res_sqlite3_bind_text64))APSW_FaultInjectControl("sqlite3_bind_text64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_bind_text64))0x1FACADE == _res_sqlite3_bind_text64)                                                                             \
       _res_sqlite3_bind_text64 = sqlite3_bind_text64(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_bind_text64))0x2FACADE == _res_sqlite3_bind_text64)                                                                         \
    {                                                                                                                                                         \
        sqlite3_bind_text64(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_bind_text64 = (typeof (_res_sqlite3_bind_text64))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_bind_text64;                                                                                                                                 \
})
#define sqlite3_bind_value(...) \
({                                                                                                                                                         \
    __auto_type _res_sqlite3_bind_value = 0 ? sqlite3_bind_value(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_sqlite3_bind_value = (typeof (_res_sqlite3_bind_value))APSW_FaultInjectControl("sqlite3_bind_value", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_sqlite3_bind_value))0x1FACADE == _res_sqlite3_bind_value)                                                                            \
       _res_sqlite3_bind_value = sqlite3_bind_value(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_sqlite3_bind_value))0x2FACADE == _res_sqlite3_bind_value)                                                                        \
    {                                                                                                                                                      \
        sqlite3_bind_value(__VA_ARGS__);                                                                                                                   \
        _res_sqlite3_bind_value = (typeof (_res_sqlite3_bind_value))18;                                                                                    \
    }                                                                                                                                                      \
    _res_sqlite3_bind_value;                                                                                                                               \
})
#define sqlite3_bind_zeroblob(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3_bind_zeroblob = 0 ? sqlite3_bind_zeroblob(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3_bind_zeroblob = (typeof (_res_sqlite3_bind_zeroblob))APSW_FaultInjectControl("sqlite3_bind_zeroblob", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3_bind_zeroblob))0x1FACADE == _res_sqlite3_bind_zeroblob)                                                                               \
       _res_sqlite3_bind_zeroblob = sqlite3_bind_zeroblob(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3_bind_zeroblob))0x2FACADE == _res_sqlite3_bind_zeroblob)                                                                           \
    {                                                                                                                                                               \
        sqlite3_bind_zeroblob(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3_bind_zeroblob = (typeof (_res_sqlite3_bind_zeroblob))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3_bind_zeroblob;                                                                                                                                     \
})
#define sqlite3_bind_zeroblob64(...) \
({                                                                                                                                                                        \
    __auto_type _res_sqlite3_bind_zeroblob64 = 0 ? sqlite3_bind_zeroblob64(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_sqlite3_bind_zeroblob64 = (typeof (_res_sqlite3_bind_zeroblob64))APSW_FaultInjectControl("sqlite3_bind_zeroblob64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_sqlite3_bind_zeroblob64))0x1FACADE == _res_sqlite3_bind_zeroblob64)                                                                                 \
       _res_sqlite3_bind_zeroblob64 = sqlite3_bind_zeroblob64(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_sqlite3_bind_zeroblob64))0x2FACADE == _res_sqlite3_bind_zeroblob64)                                                                             \
    {                                                                                                                                                                     \
        sqlite3_bind_zeroblob64(__VA_ARGS__);                                                                                                                             \
        _res_sqlite3_bind_zeroblob64 = (typeof (_res_sqlite3_bind_zeroblob64))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_sqlite3_bind_zeroblob64;                                                                                                                                         \
})
#define sqlite3_blob_open(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_blob_open = 0 ? sqlite3_blob_open(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_blob_open = (typeof (_res_sqlite3_blob_open))APSW_FaultInjectControl("sqlite3_blob_open", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_blob_open))0x1FACADE == _res_sqlite3_blob_open)                                                                           \
       _res_sqlite3_blob_open = sqlite3_blob_open(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_blob_open))0x2FACADE == _res_sqlite3_blob_open)                                                                       \
    {                                                                                                                                                   \
        sqlite3_blob_open(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_blob_open = (typeof (_res_sqlite3_blob_open))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_blob_open;                                                                                                                             \
})
#define sqlite3_blob_read(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_blob_read = 0 ? sqlite3_blob_read(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_blob_read = (typeof (_res_sqlite3_blob_read))APSW_FaultInjectControl("sqlite3_blob_read", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_blob_read))0x1FACADE == _res_sqlite3_blob_read)                                                                           \
       _res_sqlite3_blob_read = sqlite3_blob_read(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_blob_read))0x2FACADE == _res_sqlite3_blob_read)                                                                       \
    {                                                                                                                                                   \
        sqlite3_blob_read(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_blob_read = (typeof (_res_sqlite3_blob_read))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_blob_read;                                                                                                                             \
})
#define sqlite3_blob_reopen(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_blob_reopen = 0 ? sqlite3_blob_reopen(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_blob_reopen = (typeof (_res_sqlite3_blob_reopen))APSW_FaultInjectControl("sqlite3_blob_reopen", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_blob_reopen))0x1FACADE == _res_sqlite3_blob_reopen)                                                                             \
       _res_sqlite3_blob_reopen = sqlite3_blob_reopen(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_blob_reopen))0x2FACADE == _res_sqlite3_blob_reopen)                                                                         \
    {                                                                                                                                                         \
        sqlite3_blob_reopen(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_blob_reopen = (typeof (_res_sqlite3_blob_reopen))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_blob_reopen;                                                                                                                                 \
})
#define sqlite3_blob_write(...) \
({                                                                                                                                                         \
    __auto_type _res_sqlite3_blob_write = 0 ? sqlite3_blob_write(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_sqlite3_blob_write = (typeof (_res_sqlite3_blob_write))APSW_FaultInjectControl("sqlite3_blob_write", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_sqlite3_blob_write))0x1FACADE == _res_sqlite3_blob_write)                                                                            \
       _res_sqlite3_blob_write = sqlite3_blob_write(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_sqlite3_blob_write))0x2FACADE == _res_sqlite3_blob_write)                                                                        \
    {                                                                                                                                                      \
        sqlite3_blob_write(__VA_ARGS__);                                                                                                                   \
        _res_sqlite3_blob_write = (typeof (_res_sqlite3_blob_write))18;                                                                                    \
    }                                                                                                                                                      \
    _res_sqlite3_blob_write;                                                                                                                               \
})
#define sqlite3_busy_handler(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_busy_handler = 0 ? sqlite3_busy_handler(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_busy_handler = (typeof (_res_sqlite3_busy_handler))APSW_FaultInjectControl("sqlite3_busy_handler", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_busy_handler))0x1FACADE == _res_sqlite3_busy_handler)                                                                              \
       _res_sqlite3_busy_handler = sqlite3_busy_handler(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_busy_handler))0x2FACADE == _res_sqlite3_busy_handler)                                                                          \
    {                                                                                                                                                            \
        sqlite3_busy_handler(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_busy_handler = (typeof (_res_sqlite3_busy_handler))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_busy_handler;                                                                                                                                   \
})
#define sqlite3_busy_timeout(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_busy_timeout = 0 ? sqlite3_busy_timeout(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_busy_timeout = (typeof (_res_sqlite3_busy_timeout))APSW_FaultInjectControl("sqlite3_busy_timeout", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_busy_timeout))0x1FACADE == _res_sqlite3_busy_timeout)                                                                              \
       _res_sqlite3_busy_timeout = sqlite3_busy_timeout(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_busy_timeout))0x2FACADE == _res_sqlite3_busy_timeout)                                                                          \
    {                                                                                                                                                            \
        sqlite3_busy_timeout(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_busy_timeout = (typeof (_res_sqlite3_busy_timeout))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_busy_timeout;                                                                                                                                   \
})
#define sqlite3_carray_bind_v2(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_carray_bind_v2 = 0 ? sqlite3_carray_bind_v2(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_carray_bind_v2 = (typeof (_res_sqlite3_carray_bind_v2))APSW_FaultInjectControl("sqlite3_carray_bind_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_carray_bind_v2))0x1FACADE == _res_sqlite3_carray_bind_v2)                                                                                \
       _res_sqlite3_carray_bind_v2 = sqlite3_carray_bind_v2(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_carray_bind_v2))0x2FACADE == _res_sqlite3_carray_bind_v2)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_carray_bind_v2(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_carray_bind_v2 = (typeof (_res_sqlite3_carray_bind_v2))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_carray_bind_v2;                                                                                                                                       \
})
#define sqlite3_clear_bindings(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_clear_bindings = 0 ? sqlite3_clear_bindings(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_clear_bindings = (typeof (_res_sqlite3_clear_bindings))APSW_FaultInjectControl("sqlite3_clear_bindings", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_clear_bindings))0x1FACADE == _res_sqlite3_clear_bindings)                                                                                \
       _res_sqlite3_clear_bindings = sqlite3_clear_bindings(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_clear_bindings))0x2FACADE == _res_sqlite3_clear_bindings)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_clear_bindings(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_clear_bindings = (typeof (_res_sqlite3_clear_bindings))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_clear_bindings;                                                                                                                                       \
})
#define sqlite3_close(...) \
({                                                                                                                                          \
    __auto_type _res_sqlite3_close = 0 ? sqlite3_close(__VA_ARGS__) : 0;                                                                    \
                                                                                                                                            \
    _res_sqlite3_close = (typeof (_res_sqlite3_close))APSW_FaultInjectControl("sqlite3_close", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                            \
    if ((typeof (_res_sqlite3_close))0x1FACADE == _res_sqlite3_close)                                                                       \
       _res_sqlite3_close = sqlite3_close(__VA_ARGS__);                                                                                     \
    else if ((typeof(_res_sqlite3_close))0x2FACADE == _res_sqlite3_close)                                                                   \
    {                                                                                                                                       \
        sqlite3_close(__VA_ARGS__);                                                                                                         \
        _res_sqlite3_close = (typeof (_res_sqlite3_close))18;                                                                               \
    }                                                                                                                                       \
    _res_sqlite3_close;                                                                                                                     \
})
#define sqlite3_close_v2(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_close_v2 = 0 ? sqlite3_close_v2(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_close_v2 = (typeof (_res_sqlite3_close_v2))APSW_FaultInjectControl("sqlite3_close_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_close_v2))0x1FACADE == _res_sqlite3_close_v2)                                                                          \
       _res_sqlite3_close_v2 = sqlite3_close_v2(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_close_v2))0x2FACADE == _res_sqlite3_close_v2)                                                                      \
    {                                                                                                                                                \
        sqlite3_close_v2(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_close_v2 = (typeof (_res_sqlite3_close_v2))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_close_v2;                                                                                                                           \
})
#define sqlite3_collation_needed(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3_collation_needed = 0 ? sqlite3_collation_needed(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3_collation_needed = (typeof (_res_sqlite3_collation_needed))APSW_FaultInjectControl("sqlite3_collation_needed", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3_collation_needed))0x1FACADE == _res_sqlite3_collation_needed)                                                                                  \
       _res_sqlite3_collation_needed = sqlite3_collation_needed(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3_collation_needed))0x2FACADE == _res_sqlite3_collation_needed)                                                                              \
    {                                                                                                                                                                        \
        sqlite3_collation_needed(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3_collation_needed = (typeof (_res_sqlite3_collation_needed))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3_collation_needed;                                                                                                                                           \
})
#define sqlite3_column_name(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_column_name = 0 ? sqlite3_column_name(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_column_name = (typeof (_res_sqlite3_column_name))APSW_FaultInjectControl("sqlite3_column_name", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_column_name))0x1FACADE == _res_sqlite3_column_name)                                                                             \
       _res_sqlite3_column_name = sqlite3_column_name(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_column_name))0x2FACADE == _res_sqlite3_column_name)                                                                         \
    {                                                                                                                                                         \
        sqlite3_column_name(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_column_name = (typeof (_res_sqlite3_column_name))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_column_name;                                                                                                                                 \
})
#define sqlite3_complete(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_complete = 0 ? sqlite3_complete(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_complete = (typeof (_res_sqlite3_complete))APSW_FaultInjectControl("sqlite3_complete", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_complete))0x1FACADE == _res_sqlite3_complete)                                                                          \
       _res_sqlite3_complete = sqlite3_complete(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_complete))0x2FACADE == _res_sqlite3_complete)                                                                      \
    {                                                                                                                                                \
        sqlite3_complete(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_complete = (typeof (_res_sqlite3_complete))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_complete;                                                                                                                           \
})
#define sqlite3_config(...) \
({                                                                                                                                             \
    __auto_type _res_sqlite3_config = 0 ? sqlite3_config(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_sqlite3_config = (typeof (_res_sqlite3_config))APSW_FaultInjectControl("sqlite3_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_sqlite3_config))0x1FACADE == _res_sqlite3_config)                                                                        \
       _res_sqlite3_config = sqlite3_config(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_sqlite3_config))0x2FACADE == _res_sqlite3_config)                                                                    \
    {                                                                                                                                          \
        sqlite3_config(__VA_ARGS__);                                                                                                           \
        _res_sqlite3_config = (typeof (_res_sqlite3_config))18;                                                                                \
    }                                                                                                                                          \
    _res_sqlite3_config;                                                                                                                       \
})
#define sqlite3_create_collation(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3_create_collation = 0 ? sqlite3_create_collation(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3_create_collation = (typeof (_res_sqlite3_create_collation))APSW_FaultInjectControl("sqlite3_create_collation", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3_create_collation))0x1FACADE == _res_sqlite3_create_collation)                                                                                  \
       _res_sqlite3_create_collation = sqlite3_create_collation(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3_create_collation))0x2FACADE == _res_sqlite3_create_collation)                                                                              \
    {                                                                                                                                                                        \
        sqlite3_create_collation(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3_create_collation = (typeof (_res_sqlite3_create_collation))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3_create_collation;                                                                                                                                           \
})
#define sqlite3_create_collation_v2(...) \
({                                                                                                                                                                                    \
    __auto_type _res_sqlite3_create_collation_v2 = 0 ? sqlite3_create_collation_v2(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_sqlite3_create_collation_v2 = (typeof (_res_sqlite3_create_collation_v2))APSW_FaultInjectControl("sqlite3_create_collation_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_sqlite3_create_collation_v2))0x1FACADE == _res_sqlite3_create_collation_v2)                                                                                     \
       _res_sqlite3_create_collation_v2 = sqlite3_create_collation_v2(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_sqlite3_create_collation_v2))0x2FACADE == _res_sqlite3_create_collation_v2)                                                                                 \
    {                                                                                                                                                                                 \
        sqlite3_create_collation_v2(__VA_ARGS__);                                                                                                                                     \
        _res_sqlite3_create_collation_v2 = (typeof (_res_sqlite3_create_collation_v2))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_sqlite3_create_collation_v2;                                                                                                                                                 \
})
#define sqlite3_create_function(...) \
({                                                                                                                                                                        \
    __auto_type _res_sqlite3_create_function = 0 ? sqlite3_create_function(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_sqlite3_create_function = (typeof (_res_sqlite3_create_function))APSW_FaultInjectControl("sqlite3_create_function", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_sqlite3_create_function))0x1FACADE == _res_sqlite3_create_function)                                                                                 \
       _res_sqlite3_create_function = sqlite3_create_function(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_sqlite3_create_function))0x2FACADE == _res_sqlite3_create_function)                                                                             \
    {                                                                                                                                                                     \
        sqlite3_create_function(__VA_ARGS__);                                                                                                                             \
        _res_sqlite3_create_function = (typeof (_res_sqlite3_create_function))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_sqlite3_create_function;                                                                                                                                         \
})
#define sqlite3_create_function_v2(...) \
({                                                                                                                                                                                 \
    __auto_type _res_sqlite3_create_function_v2 = 0 ? sqlite3_create_function_v2(__VA_ARGS__) : 0;                                                                                 \
                                                                                                                                                                                   \
    _res_sqlite3_create_function_v2 = (typeof (_res_sqlite3_create_function_v2))APSW_FaultInjectControl("sqlite3_create_function_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                   \
    if ((typeof (_res_sqlite3_create_function_v2))0x1FACADE == _res_sqlite3_create_function_v2)                                                                                    \
       _res_sqlite3_create_function_v2 = sqlite3_create_function_v2(__VA_ARGS__);                                                                                                  \
    else if ((typeof(_res_sqlite3_create_function_v2))0x2FACADE == _res_sqlite3_create_function_v2)                                                                                \
    {                                                                                                                                                                              \
        sqlite3_create_function_v2(__VA_ARGS__);                                                                                                                                   \
        _res_sqlite3_create_function_v2 = (typeof (_res_sqlite3_create_function_v2))18;                                                                                            \
    }                                                                                                                                                                              \
    _res_sqlite3_create_function_v2;                                                                                                                                               \
})
#define sqlite3_create_module(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3_create_module = 0 ? sqlite3_create_module(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3_create_module = (typeof (_res_sqlite3_create_module))APSW_FaultInjectControl("sqlite3_create_module", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3_create_module))0x1FACADE == _res_sqlite3_create_module)                                                                               \
       _res_sqlite3_create_module = sqlite3_create_module(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3_create_module))0x2FACADE == _res_sqlite3_create_module)                                                                           \
    {                                                                                                                                                               \
        sqlite3_create_module(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3_create_module = (typeof (_res_sqlite3_create_module))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3_create_module;                                                                                                                                     \
})
#define sqlite3_create_module_v2(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3_create_module_v2 = 0 ? sqlite3_create_module_v2(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3_create_module_v2 = (typeof (_res_sqlite3_create_module_v2))APSW_FaultInjectControl("sqlite3_create_module_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3_create_module_v2))0x1FACADE == _res_sqlite3_create_module_v2)                                                                                  \
       _res_sqlite3_create_module_v2 = sqlite3_create_module_v2(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3_create_module_v2))0x2FACADE == _res_sqlite3_create_module_v2)                                                                              \
    {                                                                                                                                                                        \
        sqlite3_create_module_v2(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3_create_module_v2 = (typeof (_res_sqlite3_create_module_v2))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3_create_module_v2;                                                                                                                                           \
})
#define sqlite3_create_window_function(...) \
({                                                                                                                                                                                             \
    __auto_type _res_sqlite3_create_window_function = 0 ? sqlite3_create_window_function(__VA_ARGS__) : 0;                                                                                     \
                                                                                                                                                                                               \
    _res_sqlite3_create_window_function = (typeof (_res_sqlite3_create_window_function))APSW_FaultInjectControl("sqlite3_create_window_function", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                               \
    if ((typeof (_res_sqlite3_create_window_function))0x1FACADE == _res_sqlite3_create_window_function)                                                                                        \
       _res_sqlite3_create_window_function = sqlite3_create_window_function(__VA_ARGS__);                                                                                                      \
    else if ((typeof(_res_sqlite3_create_window_function))0x2FACADE == _res_sqlite3_create_window_function)                                                                                    \
    {                                                                                                                                                                                          \
        sqlite3_create_window_function(__VA_ARGS__);                                                                                                                                           \
        _res_sqlite3_create_window_function = (typeof (_res_sqlite3_create_window_function))18;                                                                                                \
    }                                                                                                                                                                                          \
    _res_sqlite3_create_window_function;                                                                                                                                                       \
})
#define sqlite3_db_cacheflush(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3_db_cacheflush = 0 ? sqlite3_db_cacheflush(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3_db_cacheflush = (typeof (_res_sqlite3_db_cacheflush))APSW_FaultInjectControl("sqlite3_db_cacheflush", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3_db_cacheflush))0x1FACADE == _res_sqlite3_db_cacheflush)                                                                               \
       _res_sqlite3_db_cacheflush = sqlite3_db_cacheflush(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3_db_cacheflush))0x2FACADE == _res_sqlite3_db_cacheflush)                                                                           \
    {                                                                                                                                                               \
        sqlite3_db_cacheflush(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3_db_cacheflush = (typeof (_res_sqlite3_db_cacheflush))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3_db_cacheflush;                                                                                                                                     \
})
#define sqlite3_db_config(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_db_config = 0 ? sqlite3_db_config(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_db_config = (typeof (_res_sqlite3_db_config))APSW_FaultInjectControl("sqlite3_db_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_db_config))0x1FACADE == _res_sqlite3_db_config)                                                                           \
       _res_sqlite3_db_config = sqlite3_db_config(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_db_config))0x2FACADE == _res_sqlite3_db_config)                                                                       \
    {                                                                                                                                                   \
        sqlite3_db_config(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_db_config = (typeof (_res_sqlite3_db_config))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_db_config;                                                                                                                             \
})
#define sqlite3_db_release_memory(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3_db_release_memory = 0 ? sqlite3_db_release_memory(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3_db_release_memory = (typeof (_res_sqlite3_db_release_memory))APSW_FaultInjectControl("sqlite3_db_release_memory", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3_db_release_memory))0x1FACADE == _res_sqlite3_db_release_memory)                                                                                   \
       _res_sqlite3_db_release_memory = sqlite3_db_release_memory(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3_db_release_memory))0x2FACADE == _res_sqlite3_db_release_memory)                                                                               \
    {                                                                                                                                                                           \
        sqlite3_db_release_memory(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3_db_release_memory = (typeof (_res_sqlite3_db_release_memory))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3_db_release_memory;                                                                                                                                             \
})
#define sqlite3_db_status(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_db_status = 0 ? sqlite3_db_status(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_db_status = (typeof (_res_sqlite3_db_status))APSW_FaultInjectControl("sqlite3_db_status", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_db_status))0x1FACADE == _res_sqlite3_db_status)                                                                           \
       _res_sqlite3_db_status = sqlite3_db_status(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_db_status))0x2FACADE == _res_sqlite3_db_status)                                                                       \
    {                                                                                                                                                   \
        sqlite3_db_status(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_db_status = (typeof (_res_sqlite3_db_status))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_db_status;                                                                                                                             \
})
#define sqlite3_declare_vtab(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_declare_vtab = 0 ? sqlite3_declare_vtab(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_declare_vtab = (typeof (_res_sqlite3_declare_vtab))APSW_FaultInjectControl("sqlite3_declare_vtab", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_declare_vtab))0x1FACADE == _res_sqlite3_declare_vtab)                                                                              \
       _res_sqlite3_declare_vtab = sqlite3_declare_vtab(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_declare_vtab))0x2FACADE == _res_sqlite3_declare_vtab)                                                                          \
    {                                                                                                                                                            \
        sqlite3_declare_vtab(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_declare_vtab = (typeof (_res_sqlite3_declare_vtab))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_declare_vtab;                                                                                                                                   \
})
#define sqlite3_deserialize(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_deserialize = 0 ? sqlite3_deserialize(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_deserialize = (typeof (_res_sqlite3_deserialize))APSW_FaultInjectControl("sqlite3_deserialize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_deserialize))0x1FACADE == _res_sqlite3_deserialize)                                                                             \
       _res_sqlite3_deserialize = sqlite3_deserialize(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_deserialize))0x2FACADE == _res_sqlite3_deserialize)                                                                         \
    {                                                                                                                                                         \
        sqlite3_deserialize(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_deserialize = (typeof (_res_sqlite3_deserialize))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_deserialize;                                                                                                                                 \
})
#define sqlite3_drop_modules(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_drop_modules = 0 ? sqlite3_drop_modules(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_drop_modules = (typeof (_res_sqlite3_drop_modules))APSW_FaultInjectControl("sqlite3_drop_modules", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_drop_modules))0x1FACADE == _res_sqlite3_drop_modules)                                                                              \
       _res_sqlite3_drop_modules = sqlite3_drop_modules(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_drop_modules))0x2FACADE == _res_sqlite3_drop_modules)                                                                          \
    {                                                                                                                                                            \
        sqlite3_drop_modules(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_drop_modules = (typeof (_res_sqlite3_drop_modules))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_drop_modules;                                                                                                                                   \
})
#define sqlite3_enable_load_extension(...) \
({                                                                                                                                                                                          \
    __auto_type _res_sqlite3_enable_load_extension = 0 ? sqlite3_enable_load_extension(__VA_ARGS__) : 0;                                                                                    \
                                                                                                                                                                                            \
    _res_sqlite3_enable_load_extension = (typeof (_res_sqlite3_enable_load_extension))APSW_FaultInjectControl("sqlite3_enable_load_extension", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                            \
    if ((typeof (_res_sqlite3_enable_load_extension))0x1FACADE == _res_sqlite3_enable_load_extension)                                                                                       \
       _res_sqlite3_enable_load_extension = sqlite3_enable_load_extension(__VA_ARGS__);                                                                                                     \
    else if ((typeof(_res_sqlite3_enable_load_extension))0x2FACADE == _res_sqlite3_enable_load_extension)                                                                                   \
    {                                                                                                                                                                                       \
        sqlite3_enable_load_extension(__VA_ARGS__);                                                                                                                                         \
        _res_sqlite3_enable_load_extension = (typeof (_res_sqlite3_enable_load_extension))18;                                                                                               \
    }                                                                                                                                                                                       \
    _res_sqlite3_enable_load_extension;                                                                                                                                                     \
})
#define sqlite3_exec(...) \
({                                                                                                                                       \
    __auto_type _res_sqlite3_exec = 0 ? sqlite3_exec(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_sqlite3_exec = (typeof (_res_sqlite3_exec))APSW_FaultInjectControl("sqlite3_exec", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_sqlite3_exec))0x1FACADE == _res_sqlite3_exec)                                                                      \
       _res_sqlite3_exec = sqlite3_exec(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_sqlite3_exec))0x2FACADE == _res_sqlite3_exec)                                                                  \
    {                                                                                                                                    \
        sqlite3_exec(__VA_ARGS__);                                                                                                       \
        _res_sqlite3_exec = (typeof (_res_sqlite3_exec))18;                                                                              \
    }                                                                                                                                    \
    _res_sqlite3_exec;                                                                                                                   \
})
#define sqlite3_expanded_sql(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_expanded_sql = 0 ? sqlite3_expanded_sql(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_expanded_sql = (typeof (_res_sqlite3_expanded_sql))APSW_FaultInjectControl("sqlite3_expanded_sql", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_expanded_sql))0x1FACADE == _res_sqlite3_expanded_sql)                                                                              \
       _res_sqlite3_expanded_sql = sqlite3_expanded_sql(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_expanded_sql))0x2FACADE == _res_sqlite3_expanded_sql)                                                                          \
    {                                                                                                                                                            \
        sqlite3_expanded_sql(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_expanded_sql = (typeof (_res_sqlite3_expanded_sql))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_expanded_sql;                                                                                                                                   \
})
#define sqlite3_initialize(...) \
({                                                                                                                                                         \
    __auto_type _res_sqlite3_initialize = 0 ? sqlite3_initialize(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_sqlite3_initialize = (typeof (_res_sqlite3_initialize))APSW_FaultInjectControl("sqlite3_initialize", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_sqlite3_initialize))0x1FACADE == _res_sqlite3_initialize)                                                                            \
       _res_sqlite3_initialize = sqlite3_initialize(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_sqlite3_initialize))0x2FACADE == _res_sqlite3_initialize)                                                                        \
    {                                                                                                                                                      \
        sqlite3_initialize(__VA_ARGS__);                                                                                                                   \
        _res_sqlite3_initialize = (typeof (_res_sqlite3_initialize))18;                                                                                    \
    }                                                                                                                                                      \
    _res_sqlite3_initialize;                                                                                                                               \
})
#define sqlite3_load_extension(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_load_extension = 0 ? sqlite3_load_extension(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_load_extension = (typeof (_res_sqlite3_load_extension))APSW_FaultInjectControl("sqlite3_load_extension", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_load_extension))0x1FACADE == _res_sqlite3_load_extension)                                                                                \
       _res_sqlite3_load_extension = sqlite3_load_extension(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_load_extension))0x2FACADE == _res_sqlite3_load_extension)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_load_extension(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_load_extension = (typeof (_res_sqlite3_load_extension))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_load_extension;                                                                                                                                       \
})
#define sqlite3_malloc(...) \
({                                                                                                                                             \
    __auto_type _res_sqlite3_malloc = 0 ? sqlite3_malloc(__VA_ARGS__) : 0;                                                                     \
                                                                                                                                               \
    _res_sqlite3_malloc = (typeof (_res_sqlite3_malloc))APSW_FaultInjectControl("sqlite3_malloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                               \
    if ((typeof (_res_sqlite3_malloc))0x1FACADE == _res_sqlite3_malloc)                                                                        \
       _res_sqlite3_malloc = sqlite3_malloc(__VA_ARGS__);                                                                                      \
    else if ((typeof(_res_sqlite3_malloc))0x2FACADE == _res_sqlite3_malloc)                                                                    \
    {                                                                                                                                          \
        sqlite3_malloc(__VA_ARGS__);                                                                                                           \
        _res_sqlite3_malloc = (typeof (_res_sqlite3_malloc))18;                                                                                \
    }                                                                                                                                          \
    _res_sqlite3_malloc;                                                                                                                       \
})
#define sqlite3_malloc64(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_malloc64 = 0 ? sqlite3_malloc64(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_malloc64 = (typeof (_res_sqlite3_malloc64))APSW_FaultInjectControl("sqlite3_malloc64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_malloc64))0x1FACADE == _res_sqlite3_malloc64)                                                                          \
       _res_sqlite3_malloc64 = sqlite3_malloc64(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_malloc64))0x2FACADE == _res_sqlite3_malloc64)                                                                      \
    {                                                                                                                                                \
        sqlite3_malloc64(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_malloc64 = (typeof (_res_sqlite3_malloc64))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_malloc64;                                                                                                                           \
})
#define sqlite3_mprintf(...) \
({                                                                                                                                                \
    __auto_type _res_sqlite3_mprintf = 0 ? sqlite3_mprintf(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_sqlite3_mprintf = (typeof (_res_sqlite3_mprintf))APSW_FaultInjectControl("sqlite3_mprintf", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_sqlite3_mprintf))0x1FACADE == _res_sqlite3_mprintf)                                                                         \
       _res_sqlite3_mprintf = sqlite3_mprintf(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_sqlite3_mprintf))0x2FACADE == _res_sqlite3_mprintf)                                                                     \
    {                                                                                                                                             \
        sqlite3_mprintf(__VA_ARGS__);                                                                                                             \
        _res_sqlite3_mprintf = (typeof (_res_sqlite3_mprintf))18;                                                                                 \
    }                                                                                                                                             \
    _res_sqlite3_mprintf;                                                                                                                         \
})
#define sqlite3_normalized_sql(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_normalized_sql = 0 ? sqlite3_normalized_sql(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_normalized_sql = (typeof (_res_sqlite3_normalized_sql))APSW_FaultInjectControl("sqlite3_normalized_sql", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_normalized_sql))0x1FACADE == _res_sqlite3_normalized_sql)                                                                                \
       _res_sqlite3_normalized_sql = sqlite3_normalized_sql(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_normalized_sql))0x2FACADE == _res_sqlite3_normalized_sql)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_normalized_sql(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_normalized_sql = (typeof (_res_sqlite3_normalized_sql))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_normalized_sql;                                                                                                                                       \
})
#define sqlite3_open(...) \
({                                                                                                                                       \
    __auto_type _res_sqlite3_open = 0 ? sqlite3_open(__VA_ARGS__) : 0;                                                                   \
                                                                                                                                         \
    _res_sqlite3_open = (typeof (_res_sqlite3_open))APSW_FaultInjectControl("sqlite3_open", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                         \
    if ((typeof (_res_sqlite3_open))0x1FACADE == _res_sqlite3_open)                                                                      \
       _res_sqlite3_open = sqlite3_open(__VA_ARGS__);                                                                                    \
    else if ((typeof(_res_sqlite3_open))0x2FACADE == _res_sqlite3_open)                                                                  \
    {                                                                                                                                    \
        sqlite3_open(__VA_ARGS__);                                                                                                       \
        _res_sqlite3_open = (typeof (_res_sqlite3_open))18;                                                                              \
    }                                                                                                                                    \
    _res_sqlite3_open;                                                                                                                   \
})
#define sqlite3_open_v2(...) \
({                                                                                                                                                \
    __auto_type _res_sqlite3_open_v2 = 0 ? sqlite3_open_v2(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_sqlite3_open_v2 = (typeof (_res_sqlite3_open_v2))APSW_FaultInjectControl("sqlite3_open_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_sqlite3_open_v2))0x1FACADE == _res_sqlite3_open_v2)                                                                         \
       _res_sqlite3_open_v2 = sqlite3_open_v2(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_sqlite3_open_v2))0x2FACADE == _res_sqlite3_open_v2)                                                                     \
    {                                                                                                                                             \
        sqlite3_open_v2(__VA_ARGS__);                                                                                                             \
        _res_sqlite3_open_v2 = (typeof (_res_sqlite3_open_v2))18;                                                                                 \
    }                                                                                                                                             \
    _res_sqlite3_open_v2;                                                                                                                         \
})
#define sqlite3_overload_function(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3_overload_function = 0 ? sqlite3_overload_function(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3_overload_function = (typeof (_res_sqlite3_overload_function))APSW_FaultInjectControl("sqlite3_overload_function", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3_overload_function))0x1FACADE == _res_sqlite3_overload_function)                                                                                   \
       _res_sqlite3_overload_function = sqlite3_overload_function(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3_overload_function))0x2FACADE == _res_sqlite3_overload_function)                                                                               \
    {                                                                                                                                                                           \
        sqlite3_overload_function(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3_overload_function = (typeof (_res_sqlite3_overload_function))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3_overload_function;                                                                                                                                             \
})
#define sqlite3_prepare(...) \
({                                                                                                                                                \
    __auto_type _res_sqlite3_prepare = 0 ? sqlite3_prepare(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_sqlite3_prepare = (typeof (_res_sqlite3_prepare))APSW_FaultInjectControl("sqlite3_prepare", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_sqlite3_prepare))0x1FACADE == _res_sqlite3_prepare)                                                                         \
       _res_sqlite3_prepare = sqlite3_prepare(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_sqlite3_prepare))0x2FACADE == _res_sqlite3_prepare)                                                                     \
    {                                                                                                                                             \
        sqlite3_prepare(__VA_ARGS__);                                                                                                             \
        _res_sqlite3_prepare = (typeof (_res_sqlite3_prepare))18;                                                                                 \
    }                                                                                                                                             \
    _res_sqlite3_prepare;                                                                                                                         \
})
#define sqlite3_prepare_v3(...) \
({                                                                                                                                                         \
    __auto_type _res_sqlite3_prepare_v3 = 0 ? sqlite3_prepare_v3(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_sqlite3_prepare_v3 = (typeof (_res_sqlite3_prepare_v3))APSW_FaultInjectControl("sqlite3_prepare_v3", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_sqlite3_prepare_v3))0x1FACADE == _res_sqlite3_prepare_v3)                                                                            \
       _res_sqlite3_prepare_v3 = sqlite3_prepare_v3(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_sqlite3_prepare_v3))0x2FACADE == _res_sqlite3_prepare_v3)                                                                        \
    {                                                                                                                                                      \
        sqlite3_prepare_v3(__VA_ARGS__);                                                                                                                   \
        _res_sqlite3_prepare_v3 = (typeof (_res_sqlite3_prepare_v3))18;                                                                                    \
    }                                                                                                                                                      \
    _res_sqlite3_prepare_v3;                                                                                                                               \
})
#define sqlite3_preupdate_new(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3_preupdate_new = 0 ? sqlite3_preupdate_new(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3_preupdate_new = (typeof (_res_sqlite3_preupdate_new))APSW_FaultInjectControl("sqlite3_preupdate_new", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3_preupdate_new))0x1FACADE == _res_sqlite3_preupdate_new)                                                                               \
       _res_sqlite3_preupdate_new = sqlite3_preupdate_new(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3_preupdate_new))0x2FACADE == _res_sqlite3_preupdate_new)                                                                           \
    {                                                                                                                                                               \
        sqlite3_preupdate_new(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3_preupdate_new = (typeof (_res_sqlite3_preupdate_new))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3_preupdate_new;                                                                                                                                     \
})
#define sqlite3_preupdate_old(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3_preupdate_old = 0 ? sqlite3_preupdate_old(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3_preupdate_old = (typeof (_res_sqlite3_preupdate_old))APSW_FaultInjectControl("sqlite3_preupdate_old", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3_preupdate_old))0x1FACADE == _res_sqlite3_preupdate_old)                                                                               \
       _res_sqlite3_preupdate_old = sqlite3_preupdate_old(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3_preupdate_old))0x2FACADE == _res_sqlite3_preupdate_old)                                                                           \
    {                                                                                                                                                               \
        sqlite3_preupdate_old(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3_preupdate_old = (typeof (_res_sqlite3_preupdate_old))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3_preupdate_old;                                                                                                                                     \
})
#define sqlite3_realloc(...) \
({                                                                                                                                                \
    __auto_type _res_sqlite3_realloc = 0 ? sqlite3_realloc(__VA_ARGS__) : 0;                                                                      \
                                                                                                                                                  \
    _res_sqlite3_realloc = (typeof (_res_sqlite3_realloc))APSW_FaultInjectControl("sqlite3_realloc", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                  \
    if ((typeof (_res_sqlite3_realloc))0x1FACADE == _res_sqlite3_realloc)                                                                         \
       _res_sqlite3_realloc = sqlite3_realloc(__VA_ARGS__);                                                                                       \
    else if ((typeof(_res_sqlite3_realloc))0x2FACADE == _res_sqlite3_realloc)                                                                     \
    {                                                                                                                                             \
        sqlite3_realloc(__VA_ARGS__);                                                                                                             \
        _res_sqlite3_realloc = (typeof (_res_sqlite3_realloc))18;                                                                                 \
    }                                                                                                                                             \
    _res_sqlite3_realloc;                                                                                                                         \
})
#define sqlite3_realloc64(...) \
({                                                                                                                                                      \
    __auto_type _res_sqlite3_realloc64 = 0 ? sqlite3_realloc64(__VA_ARGS__) : 0;                                                                        \
                                                                                                                                                        \
    _res_sqlite3_realloc64 = (typeof (_res_sqlite3_realloc64))APSW_FaultInjectControl("sqlite3_realloc64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                        \
    if ((typeof (_res_sqlite3_realloc64))0x1FACADE == _res_sqlite3_realloc64)                                                                           \
       _res_sqlite3_realloc64 = sqlite3_realloc64(__VA_ARGS__);                                                                                         \
    else if ((typeof(_res_sqlite3_realloc64))0x2FACADE == _res_sqlite3_realloc64)                                                                       \
    {                                                                                                                                                   \
        sqlite3_realloc64(__VA_ARGS__);                                                                                                                 \
        _res_sqlite3_realloc64 = (typeof (_res_sqlite3_realloc64))18;                                                                                   \
    }                                                                                                                                                   \
    _res_sqlite3_realloc64;                                                                                                                             \
})
#define sqlite3_result_zeroblob64(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3_result_zeroblob64 = 0 ? sqlite3_result_zeroblob64(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3_result_zeroblob64 = (typeof (_res_sqlite3_result_zeroblob64))APSW_FaultInjectControl("sqlite3_result_zeroblob64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3_result_zeroblob64))0x1FACADE == _res_sqlite3_result_zeroblob64)                                                                                   \
       _res_sqlite3_result_zeroblob64 = sqlite3_result_zeroblob64(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3_result_zeroblob64))0x2FACADE == _res_sqlite3_result_zeroblob64)                                                                               \
    {                                                                                                                                                                           \
        sqlite3_result_zeroblob64(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3_result_zeroblob64 = (typeof (_res_sqlite3_result_zeroblob64))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3_result_zeroblob64;                                                                                                                                             \
})
#define sqlite3_set_authorizer(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_set_authorizer = 0 ? sqlite3_set_authorizer(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_set_authorizer = (typeof (_res_sqlite3_set_authorizer))APSW_FaultInjectControl("sqlite3_set_authorizer", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_set_authorizer))0x1FACADE == _res_sqlite3_set_authorizer)                                                                                \
       _res_sqlite3_set_authorizer = sqlite3_set_authorizer(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_set_authorizer))0x2FACADE == _res_sqlite3_set_authorizer)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_set_authorizer(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_set_authorizer = (typeof (_res_sqlite3_set_authorizer))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_set_authorizer;                                                                                                                                       \
})
#define sqlite3_shutdown(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_shutdown = 0 ? sqlite3_shutdown(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_shutdown = (typeof (_res_sqlite3_shutdown))APSW_FaultInjectControl("sqlite3_shutdown", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_shutdown))0x1FACADE == _res_sqlite3_shutdown)                                                                          \
       _res_sqlite3_shutdown = sqlite3_shutdown(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_shutdown))0x2FACADE == _res_sqlite3_shutdown)                                                                      \
    {                                                                                                                                                \
        sqlite3_shutdown(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_shutdown = (typeof (_res_sqlite3_shutdown))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_shutdown;                                                                                                                           \
})
#define sqlite3_status64(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_status64 = 0 ? sqlite3_status64(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_status64 = (typeof (_res_sqlite3_status64))APSW_FaultInjectControl("sqlite3_status64", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_status64))0x1FACADE == _res_sqlite3_status64)                                                                          \
       _res_sqlite3_status64 = sqlite3_status64(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_status64))0x2FACADE == _res_sqlite3_status64)                                                                      \
    {                                                                                                                                                \
        sqlite3_status64(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_status64 = (typeof (_res_sqlite3_status64))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_status64;                                                                                                                           \
})
#define sqlite3_table_column_metadata(...) \
({                                                                                                                                                                                          \
    __auto_type _res_sqlite3_table_column_metadata = 0 ? sqlite3_table_column_metadata(__VA_ARGS__) : 0;                                                                                    \
                                                                                                                                                                                            \
    _res_sqlite3_table_column_metadata = (typeof (_res_sqlite3_table_column_metadata))APSW_FaultInjectControl("sqlite3_table_column_metadata", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                            \
    if ((typeof (_res_sqlite3_table_column_metadata))0x1FACADE == _res_sqlite3_table_column_metadata)                                                                                       \
       _res_sqlite3_table_column_metadata = sqlite3_table_column_metadata(__VA_ARGS__);                                                                                                     \
    else if ((typeof(_res_sqlite3_table_column_metadata))0x2FACADE == _res_sqlite3_table_column_metadata)                                                                                   \
    {                                                                                                                                                                                       \
        sqlite3_table_column_metadata(__VA_ARGS__);                                                                                                                                         \
        _res_sqlite3_table_column_metadata = (typeof (_res_sqlite3_table_column_metadata))18;                                                                                               \
    }                                                                                                                                                                                       \
    _res_sqlite3_table_column_metadata;                                                                                                                                                     \
})
#define sqlite3_threadsafe(...) \
({                                                                                                                                                         \
    __auto_type _res_sqlite3_threadsafe = 0 ? sqlite3_threadsafe(__VA_ARGS__) : 0;                                                                         \
                                                                                                                                                           \
    _res_sqlite3_threadsafe = (typeof (_res_sqlite3_threadsafe))APSW_FaultInjectControl("sqlite3_threadsafe", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                           \
    if ((typeof (_res_sqlite3_threadsafe))0x1FACADE == _res_sqlite3_threadsafe)                                                                            \
       _res_sqlite3_threadsafe = sqlite3_threadsafe(__VA_ARGS__);                                                                                          \
    else if ((typeof(_res_sqlite3_threadsafe))0x2FACADE == _res_sqlite3_threadsafe)                                                                        \
    {                                                                                                                                                      \
        sqlite3_threadsafe(__VA_ARGS__);                                                                                                                   \
        _res_sqlite3_threadsafe = (typeof (_res_sqlite3_threadsafe))18;                                                                                    \
    }                                                                                                                                                      \
    _res_sqlite3_threadsafe;                                                                                                                               \
})
#define sqlite3_trace_v2(...) \
({                                                                                                                                                   \
    __auto_type _res_sqlite3_trace_v2 = 0 ? sqlite3_trace_v2(__VA_ARGS__) : 0;                                                                       \
                                                                                                                                                     \
    _res_sqlite3_trace_v2 = (typeof (_res_sqlite3_trace_v2))APSW_FaultInjectControl("sqlite3_trace_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                     \
    if ((typeof (_res_sqlite3_trace_v2))0x1FACADE == _res_sqlite3_trace_v2)                                                                          \
       _res_sqlite3_trace_v2 = sqlite3_trace_v2(__VA_ARGS__);                                                                                        \
    else if ((typeof(_res_sqlite3_trace_v2))0x2FACADE == _res_sqlite3_trace_v2)                                                                      \
    {                                                                                                                                                \
        sqlite3_trace_v2(__VA_ARGS__);                                                                                                               \
        _res_sqlite3_trace_v2 = (typeof (_res_sqlite3_trace_v2))18;                                                                                  \
    }                                                                                                                                                \
    _res_sqlite3_trace_v2;                                                                                                                           \
})
#define sqlite3_vfs_register(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_vfs_register = 0 ? sqlite3_vfs_register(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_vfs_register = (typeof (_res_sqlite3_vfs_register))APSW_FaultInjectControl("sqlite3_vfs_register", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_vfs_register))0x1FACADE == _res_sqlite3_vfs_register)                                                                              \
       _res_sqlite3_vfs_register = sqlite3_vfs_register(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_vfs_register))0x2FACADE == _res_sqlite3_vfs_register)                                                                          \
    {                                                                                                                                                            \
        sqlite3_vfs_register(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_vfs_register = (typeof (_res_sqlite3_vfs_register))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_vfs_register;                                                                                                                                   \
})
#define sqlite3_vfs_unregister(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_vfs_unregister = 0 ? sqlite3_vfs_unregister(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_vfs_unregister = (typeof (_res_sqlite3_vfs_unregister))APSW_FaultInjectControl("sqlite3_vfs_unregister", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_vfs_unregister))0x1FACADE == _res_sqlite3_vfs_unregister)                                                                                \
       _res_sqlite3_vfs_unregister = sqlite3_vfs_unregister(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_vfs_unregister))0x2FACADE == _res_sqlite3_vfs_unregister)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_vfs_unregister(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_vfs_unregister = (typeof (_res_sqlite3_vfs_unregister))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_vfs_unregister;                                                                                                                                       \
})
#define sqlite3_vtab_config(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3_vtab_config = 0 ? sqlite3_vtab_config(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3_vtab_config = (typeof (_res_sqlite3_vtab_config))APSW_FaultInjectControl("sqlite3_vtab_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3_vtab_config))0x1FACADE == _res_sqlite3_vtab_config)                                                                             \
       _res_sqlite3_vtab_config = sqlite3_vtab_config(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3_vtab_config))0x2FACADE == _res_sqlite3_vtab_config)                                                                         \
    {                                                                                                                                                         \
        sqlite3_vtab_config(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3_vtab_config = (typeof (_res_sqlite3_vtab_config))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3_vtab_config;                                                                                                                                 \
})
#define sqlite3_vtab_in_next(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3_vtab_in_next = 0 ? sqlite3_vtab_in_next(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3_vtab_in_next = (typeof (_res_sqlite3_vtab_in_next))APSW_FaultInjectControl("sqlite3_vtab_in_next", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3_vtab_in_next))0x1FACADE == _res_sqlite3_vtab_in_next)                                                                              \
       _res_sqlite3_vtab_in_next = sqlite3_vtab_in_next(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3_vtab_in_next))0x2FACADE == _res_sqlite3_vtab_in_next)                                                                          \
    {                                                                                                                                                            \
        sqlite3_vtab_in_next(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3_vtab_in_next = (typeof (_res_sqlite3_vtab_in_next))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3_vtab_in_next;                                                                                                                                   \
})
#define sqlite3_vtab_rhs_value(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3_vtab_rhs_value = 0 ? sqlite3_vtab_rhs_value(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3_vtab_rhs_value = (typeof (_res_sqlite3_vtab_rhs_value))APSW_FaultInjectControl("sqlite3_vtab_rhs_value", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3_vtab_rhs_value))0x1FACADE == _res_sqlite3_vtab_rhs_value)                                                                                \
       _res_sqlite3_vtab_rhs_value = sqlite3_vtab_rhs_value(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3_vtab_rhs_value))0x2FACADE == _res_sqlite3_vtab_rhs_value)                                                                            \
    {                                                                                                                                                                  \
        sqlite3_vtab_rhs_value(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3_vtab_rhs_value = (typeof (_res_sqlite3_vtab_rhs_value))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3_vtab_rhs_value;                                                                                                                                       \
})
#define sqlite3_wal_autocheckpoint(...) \
({                                                                                                                                                                                 \
    __auto_type _res_sqlite3_wal_autocheckpoint = 0 ? sqlite3_wal_autocheckpoint(__VA_ARGS__) : 0;                                                                                 \
                                                                                                                                                                                   \
    _res_sqlite3_wal_autocheckpoint = (typeof (_res_sqlite3_wal_autocheckpoint))APSW_FaultInjectControl("sqlite3_wal_autocheckpoint", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                   \
    if ((typeof (_res_sqlite3_wal_autocheckpoint))0x1FACADE == _res_sqlite3_wal_autocheckpoint)                                                                                    \
       _res_sqlite3_wal_autocheckpoint = sqlite3_wal_autocheckpoint(__VA_ARGS__);                                                                                                  \
    else if ((typeof(_res_sqlite3_wal_autocheckpoint))0x2FACADE == _res_sqlite3_wal_autocheckpoint)                                                                                \
    {                                                                                                                                                                              \
        sqlite3_wal_autocheckpoint(__VA_ARGS__);                                                                                                                                   \
        _res_sqlite3_wal_autocheckpoint = (typeof (_res_sqlite3_wal_autocheckpoint))18;                                                                                            \
    }                                                                                                                                                                              \
    _res_sqlite3_wal_autocheckpoint;                                                                                                                                               \
})
#define sqlite3_wal_checkpoint_v2(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3_wal_checkpoint_v2 = 0 ? sqlite3_wal_checkpoint_v2(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3_wal_checkpoint_v2 = (typeof (_res_sqlite3_wal_checkpoint_v2))APSW_FaultInjectControl("sqlite3_wal_checkpoint_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3_wal_checkpoint_v2))0x1FACADE == _res_sqlite3_wal_checkpoint_v2)                                                                                   \
       _res_sqlite3_wal_checkpoint_v2 = sqlite3_wal_checkpoint_v2(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3_wal_checkpoint_v2))0x2FACADE == _res_sqlite3_wal_checkpoint_v2)                                                                               \
    {                                                                                                                                                                           \
        sqlite3_wal_checkpoint_v2(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3_wal_checkpoint_v2 = (typeof (_res_sqlite3_wal_checkpoint_v2))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3_wal_checkpoint_v2;                                                                                                                                             \
})
#define sqlite3changegroup_add(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3changegroup_add = 0 ? sqlite3changegroup_add(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3changegroup_add = (typeof (_res_sqlite3changegroup_add))APSW_FaultInjectControl("sqlite3changegroup_add", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3changegroup_add))0x1FACADE == _res_sqlite3changegroup_add)                                                                                \
       _res_sqlite3changegroup_add = sqlite3changegroup_add(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3changegroup_add))0x2FACADE == _res_sqlite3changegroup_add)                                                                            \
    {                                                                                                                                                                  \
        sqlite3changegroup_add(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3changegroup_add = (typeof (_res_sqlite3changegroup_add))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3changegroup_add;                                                                                                                                       \
})
#define sqlite3changegroup_add_change(...) \
({                                                                                                                                                                                          \
    __auto_type _res_sqlite3changegroup_add_change = 0 ? sqlite3changegroup_add_change(__VA_ARGS__) : 0;                                                                                    \
                                                                                                                                                                                            \
    _res_sqlite3changegroup_add_change = (typeof (_res_sqlite3changegroup_add_change))APSW_FaultInjectControl("sqlite3changegroup_add_change", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                            \
    if ((typeof (_res_sqlite3changegroup_add_change))0x1FACADE == _res_sqlite3changegroup_add_change)                                                                                       \
       _res_sqlite3changegroup_add_change = sqlite3changegroup_add_change(__VA_ARGS__);                                                                                                     \
    else if ((typeof(_res_sqlite3changegroup_add_change))0x2FACADE == _res_sqlite3changegroup_add_change)                                                                                   \
    {                                                                                                                                                                                       \
        sqlite3changegroup_add_change(__VA_ARGS__);                                                                                                                                         \
        _res_sqlite3changegroup_add_change = (typeof (_res_sqlite3changegroup_add_change))18;                                                                                               \
    }                                                                                                                                                                                       \
    _res_sqlite3changegroup_add_change;                                                                                                                                                     \
})
#define sqlite3changegroup_add_strm(...) \
({                                                                                                                                                                                    \
    __auto_type _res_sqlite3changegroup_add_strm = 0 ? sqlite3changegroup_add_strm(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_sqlite3changegroup_add_strm = (typeof (_res_sqlite3changegroup_add_strm))APSW_FaultInjectControl("sqlite3changegroup_add_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_sqlite3changegroup_add_strm))0x1FACADE == _res_sqlite3changegroup_add_strm)                                                                                     \
       _res_sqlite3changegroup_add_strm = sqlite3changegroup_add_strm(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_sqlite3changegroup_add_strm))0x2FACADE == _res_sqlite3changegroup_add_strm)                                                                                 \
    {                                                                                                                                                                                 \
        sqlite3changegroup_add_strm(__VA_ARGS__);                                                                                                                                     \
        _res_sqlite3changegroup_add_strm = (typeof (_res_sqlite3changegroup_add_strm))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_sqlite3changegroup_add_strm;                                                                                                                                                 \
})
#define sqlite3changegroup_new(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3changegroup_new = 0 ? sqlite3changegroup_new(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3changegroup_new = (typeof (_res_sqlite3changegroup_new))APSW_FaultInjectControl("sqlite3changegroup_new", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3changegroup_new))0x1FACADE == _res_sqlite3changegroup_new)                                                                                \
       _res_sqlite3changegroup_new = sqlite3changegroup_new(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3changegroup_new))0x2FACADE == _res_sqlite3changegroup_new)                                                                            \
    {                                                                                                                                                                  \
        sqlite3changegroup_new(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3changegroup_new = (typeof (_res_sqlite3changegroup_new))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3changegroup_new;                                                                                                                                       \
})
#define sqlite3changegroup_output(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3changegroup_output = 0 ? sqlite3changegroup_output(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3changegroup_output = (typeof (_res_sqlite3changegroup_output))APSW_FaultInjectControl("sqlite3changegroup_output", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3changegroup_output))0x1FACADE == _res_sqlite3changegroup_output)                                                                                   \
       _res_sqlite3changegroup_output = sqlite3changegroup_output(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3changegroup_output))0x2FACADE == _res_sqlite3changegroup_output)                                                                               \
    {                                                                                                                                                                           \
        sqlite3changegroup_output(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3changegroup_output = (typeof (_res_sqlite3changegroup_output))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3changegroup_output;                                                                                                                                             \
})
#define sqlite3changegroup_output_strm(...) \
({                                                                                                                                                                                             \
    __auto_type _res_sqlite3changegroup_output_strm = 0 ? sqlite3changegroup_output_strm(__VA_ARGS__) : 0;                                                                                     \
                                                                                                                                                                                               \
    _res_sqlite3changegroup_output_strm = (typeof (_res_sqlite3changegroup_output_strm))APSW_FaultInjectControl("sqlite3changegroup_output_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                               \
    if ((typeof (_res_sqlite3changegroup_output_strm))0x1FACADE == _res_sqlite3changegroup_output_strm)                                                                                        \
       _res_sqlite3changegroup_output_strm = sqlite3changegroup_output_strm(__VA_ARGS__);                                                                                                      \
    else if ((typeof(_res_sqlite3changegroup_output_strm))0x2FACADE == _res_sqlite3changegroup_output_strm)                                                                                    \
    {                                                                                                                                                                                          \
        sqlite3changegroup_output_strm(__VA_ARGS__);                                                                                                                                           \
        _res_sqlite3changegroup_output_strm = (typeof (_res_sqlite3changegroup_output_strm))18;                                                                                                \
    }                                                                                                                                                                                          \
    _res_sqlite3changegroup_output_strm;                                                                                                                                                       \
})
#define sqlite3changegroup_schema(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3changegroup_schema = 0 ? sqlite3changegroup_schema(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3changegroup_schema = (typeof (_res_sqlite3changegroup_schema))APSW_FaultInjectControl("sqlite3changegroup_schema", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3changegroup_schema))0x1FACADE == _res_sqlite3changegroup_schema)                                                                                   \
       _res_sqlite3changegroup_schema = sqlite3changegroup_schema(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3changegroup_schema))0x2FACADE == _res_sqlite3changegroup_schema)                                                                               \
    {                                                                                                                                                                           \
        sqlite3changegroup_schema(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3changegroup_schema = (typeof (_res_sqlite3changegroup_schema))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3changegroup_schema;                                                                                                                                             \
})
#define sqlite3changeset_apply_v2(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3changeset_apply_v2 = 0 ? sqlite3changeset_apply_v2(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3changeset_apply_v2 = (typeof (_res_sqlite3changeset_apply_v2))APSW_FaultInjectControl("sqlite3changeset_apply_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3changeset_apply_v2))0x1FACADE == _res_sqlite3changeset_apply_v2)                                                                                   \
       _res_sqlite3changeset_apply_v2 = sqlite3changeset_apply_v2(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3changeset_apply_v2))0x2FACADE == _res_sqlite3changeset_apply_v2)                                                                               \
    {                                                                                                                                                                           \
        sqlite3changeset_apply_v2(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3changeset_apply_v2 = (typeof (_res_sqlite3changeset_apply_v2))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3changeset_apply_v2;                                                                                                                                             \
})
#define sqlite3changeset_apply_v2_strm(...) \
({                                                                                                                                                                                             \
    __auto_type _res_sqlite3changeset_apply_v2_strm = 0 ? sqlite3changeset_apply_v2_strm(__VA_ARGS__) : 0;                                                                                     \
                                                                                                                                                                                               \
    _res_sqlite3changeset_apply_v2_strm = (typeof (_res_sqlite3changeset_apply_v2_strm))APSW_FaultInjectControl("sqlite3changeset_apply_v2_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                               \
    if ((typeof (_res_sqlite3changeset_apply_v2_strm))0x1FACADE == _res_sqlite3changeset_apply_v2_strm)                                                                                        \
       _res_sqlite3changeset_apply_v2_strm = sqlite3changeset_apply_v2_strm(__VA_ARGS__);                                                                                                      \
    else if ((typeof(_res_sqlite3changeset_apply_v2_strm))0x2FACADE == _res_sqlite3changeset_apply_v2_strm)                                                                                    \
    {                                                                                                                                                                                          \
        sqlite3changeset_apply_v2_strm(__VA_ARGS__);                                                                                                                                           \
        _res_sqlite3changeset_apply_v2_strm = (typeof (_res_sqlite3changeset_apply_v2_strm))18;                                                                                                \
    }                                                                                                                                                                                          \
    _res_sqlite3changeset_apply_v2_strm;                                                                                                                                                       \
})
#define sqlite3changeset_concat(...) \
({                                                                                                                                                                        \
    __auto_type _res_sqlite3changeset_concat = 0 ? sqlite3changeset_concat(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_sqlite3changeset_concat = (typeof (_res_sqlite3changeset_concat))APSW_FaultInjectControl("sqlite3changeset_concat", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_sqlite3changeset_concat))0x1FACADE == _res_sqlite3changeset_concat)                                                                                 \
       _res_sqlite3changeset_concat = sqlite3changeset_concat(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_sqlite3changeset_concat))0x2FACADE == _res_sqlite3changeset_concat)                                                                             \
    {                                                                                                                                                                     \
        sqlite3changeset_concat(__VA_ARGS__);                                                                                                                             \
        _res_sqlite3changeset_concat = (typeof (_res_sqlite3changeset_concat))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_sqlite3changeset_concat;                                                                                                                                         \
})
#define sqlite3changeset_concat_strm(...) \
({                                                                                                                                                                                       \
    __auto_type _res_sqlite3changeset_concat_strm = 0 ? sqlite3changeset_concat_strm(__VA_ARGS__) : 0;                                                                                   \
                                                                                                                                                                                         \
    _res_sqlite3changeset_concat_strm = (typeof (_res_sqlite3changeset_concat_strm))APSW_FaultInjectControl("sqlite3changeset_concat_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                         \
    if ((typeof (_res_sqlite3changeset_concat_strm))0x1FACADE == _res_sqlite3changeset_concat_strm)                                                                                      \
       _res_sqlite3changeset_concat_strm = sqlite3changeset_concat_strm(__VA_ARGS__);                                                                                                    \
    else if ((typeof(_res_sqlite3changeset_concat_strm))0x2FACADE == _res_sqlite3changeset_concat_strm)                                                                                  \
    {                                                                                                                                                                                    \
        sqlite3changeset_concat_strm(__VA_ARGS__);                                                                                                                                       \
        _res_sqlite3changeset_concat_strm = (typeof (_res_sqlite3changeset_concat_strm))18;                                                                                              \
    }                                                                                                                                                                                    \
    _res_sqlite3changeset_concat_strm;                                                                                                                                                   \
})
#define sqlite3changeset_conflict(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3changeset_conflict = 0 ? sqlite3changeset_conflict(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3changeset_conflict = (typeof (_res_sqlite3changeset_conflict))APSW_FaultInjectControl("sqlite3changeset_conflict", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3changeset_conflict))0x1FACADE == _res_sqlite3changeset_conflict)                                                                                   \
       _res_sqlite3changeset_conflict = sqlite3changeset_conflict(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3changeset_conflict))0x2FACADE == _res_sqlite3changeset_conflict)                                                                               \
    {                                                                                                                                                                           \
        sqlite3changeset_conflict(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3changeset_conflict = (typeof (_res_sqlite3changeset_conflict))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3changeset_conflict;                                                                                                                                             \
})
#define sqlite3changeset_fk_conflicts(...) \
({                                                                                                                                                                                          \
    __auto_type _res_sqlite3changeset_fk_conflicts = 0 ? sqlite3changeset_fk_conflicts(__VA_ARGS__) : 0;                                                                                    \
                                                                                                                                                                                            \
    _res_sqlite3changeset_fk_conflicts = (typeof (_res_sqlite3changeset_fk_conflicts))APSW_FaultInjectControl("sqlite3changeset_fk_conflicts", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                            \
    if ((typeof (_res_sqlite3changeset_fk_conflicts))0x1FACADE == _res_sqlite3changeset_fk_conflicts)                                                                                       \
       _res_sqlite3changeset_fk_conflicts = sqlite3changeset_fk_conflicts(__VA_ARGS__);                                                                                                     \
    else if ((typeof(_res_sqlite3changeset_fk_conflicts))0x2FACADE == _res_sqlite3changeset_fk_conflicts)                                                                                   \
    {                                                                                                                                                                                       \
        sqlite3changeset_fk_conflicts(__VA_ARGS__);                                                                                                                                         \
        _res_sqlite3changeset_fk_conflicts = (typeof (_res_sqlite3changeset_fk_conflicts))18;                                                                                               \
    }                                                                                                                                                                                       \
    _res_sqlite3changeset_fk_conflicts;                                                                                                                                                     \
})
#define sqlite3changeset_invert(...) \
({                                                                                                                                                                        \
    __auto_type _res_sqlite3changeset_invert = 0 ? sqlite3changeset_invert(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_sqlite3changeset_invert = (typeof (_res_sqlite3changeset_invert))APSW_FaultInjectControl("sqlite3changeset_invert", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_sqlite3changeset_invert))0x1FACADE == _res_sqlite3changeset_invert)                                                                                 \
       _res_sqlite3changeset_invert = sqlite3changeset_invert(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_sqlite3changeset_invert))0x2FACADE == _res_sqlite3changeset_invert)                                                                             \
    {                                                                                                                                                                     \
        sqlite3changeset_invert(__VA_ARGS__);                                                                                                                             \
        _res_sqlite3changeset_invert = (typeof (_res_sqlite3changeset_invert))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_sqlite3changeset_invert;                                                                                                                                         \
})
#define sqlite3changeset_invert_strm(...) \
({                                                                                                                                                                                       \
    __auto_type _res_sqlite3changeset_invert_strm = 0 ? sqlite3changeset_invert_strm(__VA_ARGS__) : 0;                                                                                   \
                                                                                                                                                                                         \
    _res_sqlite3changeset_invert_strm = (typeof (_res_sqlite3changeset_invert_strm))APSW_FaultInjectControl("sqlite3changeset_invert_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                         \
    if ((typeof (_res_sqlite3changeset_invert_strm))0x1FACADE == _res_sqlite3changeset_invert_strm)                                                                                      \
       _res_sqlite3changeset_invert_strm = sqlite3changeset_invert_strm(__VA_ARGS__);                                                                                                    \
    else if ((typeof(_res_sqlite3changeset_invert_strm))0x2FACADE == _res_sqlite3changeset_invert_strm)                                                                                  \
    {                                                                                                                                                                                    \
        sqlite3changeset_invert_strm(__VA_ARGS__);                                                                                                                                       \
        _res_sqlite3changeset_invert_strm = (typeof (_res_sqlite3changeset_invert_strm))18;                                                                                              \
    }                                                                                                                                                                                    \
    _res_sqlite3changeset_invert_strm;                                                                                                                                                   \
})
#define sqlite3changeset_new(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3changeset_new = 0 ? sqlite3changeset_new(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3changeset_new = (typeof (_res_sqlite3changeset_new))APSW_FaultInjectControl("sqlite3changeset_new", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3changeset_new))0x1FACADE == _res_sqlite3changeset_new)                                                                              \
       _res_sqlite3changeset_new = sqlite3changeset_new(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3changeset_new))0x2FACADE == _res_sqlite3changeset_new)                                                                          \
    {                                                                                                                                                            \
        sqlite3changeset_new(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3changeset_new = (typeof (_res_sqlite3changeset_new))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3changeset_new;                                                                                                                                   \
})
#define sqlite3changeset_next(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3changeset_next = 0 ? sqlite3changeset_next(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3changeset_next = (typeof (_res_sqlite3changeset_next))APSW_FaultInjectControl("sqlite3changeset_next", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3changeset_next))0x1FACADE == _res_sqlite3changeset_next)                                                                               \
       _res_sqlite3changeset_next = sqlite3changeset_next(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3changeset_next))0x2FACADE == _res_sqlite3changeset_next)                                                                           \
    {                                                                                                                                                               \
        sqlite3changeset_next(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3changeset_next = (typeof (_res_sqlite3changeset_next))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3changeset_next;                                                                                                                                     \
})
#define sqlite3changeset_old(...) \
({                                                                                                                                                               \
    __auto_type _res_sqlite3changeset_old = 0 ? sqlite3changeset_old(__VA_ARGS__) : 0;                                                                           \
                                                                                                                                                                 \
    _res_sqlite3changeset_old = (typeof (_res_sqlite3changeset_old))APSW_FaultInjectControl("sqlite3changeset_old", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                 \
    if ((typeof (_res_sqlite3changeset_old))0x1FACADE == _res_sqlite3changeset_old)                                                                              \
       _res_sqlite3changeset_old = sqlite3changeset_old(__VA_ARGS__);                                                                                            \
    else if ((typeof(_res_sqlite3changeset_old))0x2FACADE == _res_sqlite3changeset_old)                                                                          \
    {                                                                                                                                                            \
        sqlite3changeset_old(__VA_ARGS__);                                                                                                                       \
        _res_sqlite3changeset_old = (typeof (_res_sqlite3changeset_old))18;                                                                                      \
    }                                                                                                                                                            \
    _res_sqlite3changeset_old;                                                                                                                                   \
})
#define sqlite3changeset_op(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3changeset_op = 0 ? sqlite3changeset_op(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3changeset_op = (typeof (_res_sqlite3changeset_op))APSW_FaultInjectControl("sqlite3changeset_op", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3changeset_op))0x1FACADE == _res_sqlite3changeset_op)                                                                             \
       _res_sqlite3changeset_op = sqlite3changeset_op(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3changeset_op))0x2FACADE == _res_sqlite3changeset_op)                                                                         \
    {                                                                                                                                                         \
        sqlite3changeset_op(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3changeset_op = (typeof (_res_sqlite3changeset_op))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3changeset_op;                                                                                                                                 \
})
#define sqlite3changeset_pk(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3changeset_pk = 0 ? sqlite3changeset_pk(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3changeset_pk = (typeof (_res_sqlite3changeset_pk))APSW_FaultInjectControl("sqlite3changeset_pk", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3changeset_pk))0x1FACADE == _res_sqlite3changeset_pk)                                                                             \
       _res_sqlite3changeset_pk = sqlite3changeset_pk(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3changeset_pk))0x2FACADE == _res_sqlite3changeset_pk)                                                                         \
    {                                                                                                                                                         \
        sqlite3changeset_pk(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3changeset_pk = (typeof (_res_sqlite3changeset_pk))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3changeset_pk;                                                                                                                                 \
})
#define sqlite3changeset_start(...) \
({                                                                                                                                                                     \
    __auto_type _res_sqlite3changeset_start = 0 ? sqlite3changeset_start(__VA_ARGS__) : 0;                                                                             \
                                                                                                                                                                       \
    _res_sqlite3changeset_start = (typeof (_res_sqlite3changeset_start))APSW_FaultInjectControl("sqlite3changeset_start", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                       \
    if ((typeof (_res_sqlite3changeset_start))0x1FACADE == _res_sqlite3changeset_start)                                                                                \
       _res_sqlite3changeset_start = sqlite3changeset_start(__VA_ARGS__);                                                                                              \
    else if ((typeof(_res_sqlite3changeset_start))0x2FACADE == _res_sqlite3changeset_start)                                                                            \
    {                                                                                                                                                                  \
        sqlite3changeset_start(__VA_ARGS__);                                                                                                                           \
        _res_sqlite3changeset_start = (typeof (_res_sqlite3changeset_start))18;                                                                                        \
    }                                                                                                                                                                  \
    _res_sqlite3changeset_start;                                                                                                                                       \
})
#define sqlite3changeset_start_strm(...) \
({                                                                                                                                                                                    \
    __auto_type _res_sqlite3changeset_start_strm = 0 ? sqlite3changeset_start_strm(__VA_ARGS__) : 0;                                                                                  \
                                                                                                                                                                                      \
    _res_sqlite3changeset_start_strm = (typeof (_res_sqlite3changeset_start_strm))APSW_FaultInjectControl("sqlite3changeset_start_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                      \
    if ((typeof (_res_sqlite3changeset_start_strm))0x1FACADE == _res_sqlite3changeset_start_strm)                                                                                     \
       _res_sqlite3changeset_start_strm = sqlite3changeset_start_strm(__VA_ARGS__);                                                                                                   \
    else if ((typeof(_res_sqlite3changeset_start_strm))0x2FACADE == _res_sqlite3changeset_start_strm)                                                                                 \
    {                                                                                                                                                                                 \
        sqlite3changeset_start_strm(__VA_ARGS__);                                                                                                                                     \
        _res_sqlite3changeset_start_strm = (typeof (_res_sqlite3changeset_start_strm))18;                                                                                             \
    }                                                                                                                                                                                 \
    _res_sqlite3changeset_start_strm;                                                                                                                                                 \
})
#define sqlite3changeset_start_v2(...) \
({                                                                                                                                                                              \
    __auto_type _res_sqlite3changeset_start_v2 = 0 ? sqlite3changeset_start_v2(__VA_ARGS__) : 0;                                                                                \
                                                                                                                                                                                \
    _res_sqlite3changeset_start_v2 = (typeof (_res_sqlite3changeset_start_v2))APSW_FaultInjectControl("sqlite3changeset_start_v2", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                \
    if ((typeof (_res_sqlite3changeset_start_v2))0x1FACADE == _res_sqlite3changeset_start_v2)                                                                                   \
       _res_sqlite3changeset_start_v2 = sqlite3changeset_start_v2(__VA_ARGS__);                                                                                                 \
    else if ((typeof(_res_sqlite3changeset_start_v2))0x2FACADE == _res_sqlite3changeset_start_v2)                                                                               \
    {                                                                                                                                                                           \
        sqlite3changeset_start_v2(__VA_ARGS__);                                                                                                                                 \
        _res_sqlite3changeset_start_v2 = (typeof (_res_sqlite3changeset_start_v2))18;                                                                                           \
    }                                                                                                                                                                           \
    _res_sqlite3changeset_start_v2;                                                                                                                                             \
})
#define sqlite3changeset_start_v2_strm(...) \
({                                                                                                                                                                                             \
    __auto_type _res_sqlite3changeset_start_v2_strm = 0 ? sqlite3changeset_start_v2_strm(__VA_ARGS__) : 0;                                                                                     \
                                                                                                                                                                                               \
    _res_sqlite3changeset_start_v2_strm = (typeof (_res_sqlite3changeset_start_v2_strm))APSW_FaultInjectControl("sqlite3changeset_start_v2_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                               \
    if ((typeof (_res_sqlite3changeset_start_v2_strm))0x1FACADE == _res_sqlite3changeset_start_v2_strm)                                                                                        \
       _res_sqlite3changeset_start_v2_strm = sqlite3changeset_start_v2_strm(__VA_ARGS__);                                                                                                      \
    else if ((typeof(_res_sqlite3changeset_start_v2_strm))0x2FACADE == _res_sqlite3changeset_start_v2_strm)                                                                                    \
    {                                                                                                                                                                                          \
        sqlite3changeset_start_v2_strm(__VA_ARGS__);                                                                                                                                           \
        _res_sqlite3changeset_start_v2_strm = (typeof (_res_sqlite3changeset_start_v2_strm))18;                                                                                                \
    }                                                                                                                                                                                          \
    _res_sqlite3changeset_start_v2_strm;                                                                                                                                                       \
})
#define sqlite3changeset_upgrade(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3changeset_upgrade = 0 ? sqlite3changeset_upgrade(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3changeset_upgrade = (typeof (_res_sqlite3changeset_upgrade))APSW_FaultInjectControl("sqlite3changeset_upgrade", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3changeset_upgrade))0x1FACADE == _res_sqlite3changeset_upgrade)                                                                                  \
       _res_sqlite3changeset_upgrade = sqlite3changeset_upgrade(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3changeset_upgrade))0x2FACADE == _res_sqlite3changeset_upgrade)                                                                              \
    {                                                                                                                                                                        \
        sqlite3changeset_upgrade(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3changeset_upgrade = (typeof (_res_sqlite3changeset_upgrade))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3changeset_upgrade;                                                                                                                                           \
})
#define sqlite3rebaser_configure(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3rebaser_configure = 0 ? sqlite3rebaser_configure(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3rebaser_configure = (typeof (_res_sqlite3rebaser_configure))APSW_FaultInjectControl("sqlite3rebaser_configure", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3rebaser_configure))0x1FACADE == _res_sqlite3rebaser_configure)                                                                                  \
       _res_sqlite3rebaser_configure = sqlite3rebaser_configure(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3rebaser_configure))0x2FACADE == _res_sqlite3rebaser_configure)                                                                              \
    {                                                                                                                                                                        \
        sqlite3rebaser_configure(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3rebaser_configure = (typeof (_res_sqlite3rebaser_configure))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3rebaser_configure;                                                                                                                                           \
})
#define sqlite3rebaser_create(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3rebaser_create = 0 ? sqlite3rebaser_create(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3rebaser_create = (typeof (_res_sqlite3rebaser_create))APSW_FaultInjectControl("sqlite3rebaser_create", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3rebaser_create))0x1FACADE == _res_sqlite3rebaser_create)                                                                               \
       _res_sqlite3rebaser_create = sqlite3rebaser_create(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3rebaser_create))0x2FACADE == _res_sqlite3rebaser_create)                                                                           \
    {                                                                                                                                                               \
        sqlite3rebaser_create(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3rebaser_create = (typeof (_res_sqlite3rebaser_create))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3rebaser_create;                                                                                                                                     \
})
#define sqlite3rebaser_rebase(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3rebaser_rebase = 0 ? sqlite3rebaser_rebase(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3rebaser_rebase = (typeof (_res_sqlite3rebaser_rebase))APSW_FaultInjectControl("sqlite3rebaser_rebase", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3rebaser_rebase))0x1FACADE == _res_sqlite3rebaser_rebase)                                                                               \
       _res_sqlite3rebaser_rebase = sqlite3rebaser_rebase(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3rebaser_rebase))0x2FACADE == _res_sqlite3rebaser_rebase)                                                                           \
    {                                                                                                                                                               \
        sqlite3rebaser_rebase(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3rebaser_rebase = (typeof (_res_sqlite3rebaser_rebase))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3rebaser_rebase;                                                                                                                                     \
})
#define sqlite3rebaser_rebase_strm(...) \
({                                                                                                                                                                                 \
    __auto_type _res_sqlite3rebaser_rebase_strm = 0 ? sqlite3rebaser_rebase_strm(__VA_ARGS__) : 0;                                                                                 \
                                                                                                                                                                                   \
    _res_sqlite3rebaser_rebase_strm = (typeof (_res_sqlite3rebaser_rebase_strm))APSW_FaultInjectControl("sqlite3rebaser_rebase_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                   \
    if ((typeof (_res_sqlite3rebaser_rebase_strm))0x1FACADE == _res_sqlite3rebaser_rebase_strm)                                                                                    \
       _res_sqlite3rebaser_rebase_strm = sqlite3rebaser_rebase_strm(__VA_ARGS__);                                                                                                  \
    else if ((typeof(_res_sqlite3rebaser_rebase_strm))0x2FACADE == _res_sqlite3rebaser_rebase_strm)                                                                                \
    {                                                                                                                                                                              \
        sqlite3rebaser_rebase_strm(__VA_ARGS__);                                                                                                                                   \
        _res_sqlite3rebaser_rebase_strm = (typeof (_res_sqlite3rebaser_rebase_strm))18;                                                                                            \
    }                                                                                                                                                                              \
    _res_sqlite3rebaser_rebase_strm;                                                                                                                                               \
})
#define sqlite3session_attach(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3session_attach = 0 ? sqlite3session_attach(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3session_attach = (typeof (_res_sqlite3session_attach))APSW_FaultInjectControl("sqlite3session_attach", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3session_attach))0x1FACADE == _res_sqlite3session_attach)                                                                               \
       _res_sqlite3session_attach = sqlite3session_attach(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3session_attach))0x2FACADE == _res_sqlite3session_attach)                                                                           \
    {                                                                                                                                                               \
        sqlite3session_attach(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3session_attach = (typeof (_res_sqlite3session_attach))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3session_attach;                                                                                                                                     \
})
#define sqlite3session_changeset(...) \
({                                                                                                                                                                           \
    __auto_type _res_sqlite3session_changeset = 0 ? sqlite3session_changeset(__VA_ARGS__) : 0;                                                                               \
                                                                                                                                                                             \
    _res_sqlite3session_changeset = (typeof (_res_sqlite3session_changeset))APSW_FaultInjectControl("sqlite3session_changeset", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                             \
    if ((typeof (_res_sqlite3session_changeset))0x1FACADE == _res_sqlite3session_changeset)                                                                                  \
       _res_sqlite3session_changeset = sqlite3session_changeset(__VA_ARGS__);                                                                                                \
    else if ((typeof(_res_sqlite3session_changeset))0x2FACADE == _res_sqlite3session_changeset)                                                                              \
    {                                                                                                                                                                        \
        sqlite3session_changeset(__VA_ARGS__);                                                                                                                               \
        _res_sqlite3session_changeset = (typeof (_res_sqlite3session_changeset))18;                                                                                          \
    }                                                                                                                                                                        \
    _res_sqlite3session_changeset;                                                                                                                                           \
})
#define sqlite3session_changeset_strm(...) \
({                                                                                                                                                                                          \
    __auto_type _res_sqlite3session_changeset_strm = 0 ? sqlite3session_changeset_strm(__VA_ARGS__) : 0;                                                                                    \
                                                                                                                                                                                            \
    _res_sqlite3session_changeset_strm = (typeof (_res_sqlite3session_changeset_strm))APSW_FaultInjectControl("sqlite3session_changeset_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                            \
    if ((typeof (_res_sqlite3session_changeset_strm))0x1FACADE == _res_sqlite3session_changeset_strm)                                                                                       \
       _res_sqlite3session_changeset_strm = sqlite3session_changeset_strm(__VA_ARGS__);                                                                                                     \
    else if ((typeof(_res_sqlite3session_changeset_strm))0x2FACADE == _res_sqlite3session_changeset_strm)                                                                                   \
    {                                                                                                                                                                                       \
        sqlite3session_changeset_strm(__VA_ARGS__);                                                                                                                                         \
        _res_sqlite3session_changeset_strm = (typeof (_res_sqlite3session_changeset_strm))18;                                                                                               \
    }                                                                                                                                                                                       \
    _res_sqlite3session_changeset_strm;                                                                                                                                                     \
})
#define sqlite3session_config(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3session_config = 0 ? sqlite3session_config(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3session_config = (typeof (_res_sqlite3session_config))APSW_FaultInjectControl("sqlite3session_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3session_config))0x1FACADE == _res_sqlite3session_config)                                                                               \
       _res_sqlite3session_config = sqlite3session_config(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3session_config))0x2FACADE == _res_sqlite3session_config)                                                                           \
    {                                                                                                                                                               \
        sqlite3session_config(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3session_config = (typeof (_res_sqlite3session_config))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3session_config;                                                                                                                                     \
})
#define sqlite3session_create(...) \
({                                                                                                                                                                  \
    __auto_type _res_sqlite3session_create = 0 ? sqlite3session_create(__VA_ARGS__) : 0;                                                                            \
                                                                                                                                                                    \
    _res_sqlite3session_create = (typeof (_res_sqlite3session_create))APSW_FaultInjectControl("sqlite3session_create", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                    \
    if ((typeof (_res_sqlite3session_create))0x1FACADE == _res_sqlite3session_create)                                                                               \
       _res_sqlite3session_create = sqlite3session_create(__VA_ARGS__);                                                                                             \
    else if ((typeof(_res_sqlite3session_create))0x2FACADE == _res_sqlite3session_create)                                                                           \
    {                                                                                                                                                               \
        sqlite3session_create(__VA_ARGS__);                                                                                                                         \
        _res_sqlite3session_create = (typeof (_res_sqlite3session_create))18;                                                                                       \
    }                                                                                                                                                               \
    _res_sqlite3session_create;                                                                                                                                     \
})
#define sqlite3session_diff(...) \
({                                                                                                                                                            \
    __auto_type _res_sqlite3session_diff = 0 ? sqlite3session_diff(__VA_ARGS__) : 0;                                                                          \
                                                                                                                                                              \
    _res_sqlite3session_diff = (typeof (_res_sqlite3session_diff))APSW_FaultInjectControl("sqlite3session_diff", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                              \
    if ((typeof (_res_sqlite3session_diff))0x1FACADE == _res_sqlite3session_diff)                                                                             \
       _res_sqlite3session_diff = sqlite3session_diff(__VA_ARGS__);                                                                                           \
    else if ((typeof(_res_sqlite3session_diff))0x2FACADE == _res_sqlite3session_diff)                                                                         \
    {                                                                                                                                                         \
        sqlite3session_diff(__VA_ARGS__);                                                                                                                     \
        _res_sqlite3session_diff = (typeof (_res_sqlite3session_diff))18;                                                                                     \
    }                                                                                                                                                         \
    _res_sqlite3session_diff;                                                                                                                                 \
})
#define sqlite3session_object_config(...) \
({                                                                                                                                                                                       \
    __auto_type _res_sqlite3session_object_config = 0 ? sqlite3session_object_config(__VA_ARGS__) : 0;                                                                                   \
                                                                                                                                                                                         \
    _res_sqlite3session_object_config = (typeof (_res_sqlite3session_object_config))APSW_FaultInjectControl("sqlite3session_object_config", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                         \
    if ((typeof (_res_sqlite3session_object_config))0x1FACADE == _res_sqlite3session_object_config)                                                                                      \
       _res_sqlite3session_object_config = sqlite3session_object_config(__VA_ARGS__);                                                                                                    \
    else if ((typeof(_res_sqlite3session_object_config))0x2FACADE == _res_sqlite3session_object_config)                                                                                  \
    {                                                                                                                                                                                    \
        sqlite3session_object_config(__VA_ARGS__);                                                                                                                                       \
        _res_sqlite3session_object_config = (typeof (_res_sqlite3session_object_config))18;                                                                                              \
    }                                                                                                                                                                                    \
    _res_sqlite3session_object_config;                                                                                                                                                   \
})
#define sqlite3session_patchset(...) \
({                                                                                                                                                                        \
    __auto_type _res_sqlite3session_patchset = 0 ? sqlite3session_patchset(__VA_ARGS__) : 0;                                                                              \
                                                                                                                                                                          \
    _res_sqlite3session_patchset = (typeof (_res_sqlite3session_patchset))APSW_FaultInjectControl("sqlite3session_patchset", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                          \
    if ((typeof (_res_sqlite3session_patchset))0x1FACADE == _res_sqlite3session_patchset)                                                                                 \
       _res_sqlite3session_patchset = sqlite3session_patchset(__VA_ARGS__);                                                                                               \
    else if ((typeof(_res_sqlite3session_patchset))0x2FACADE == _res_sqlite3session_patchset)                                                                             \
    {                                                                                                                                                                     \
        sqlite3session_patchset(__VA_ARGS__);                                                                                                                             \
        _res_sqlite3session_patchset = (typeof (_res_sqlite3session_patchset))18;                                                                                         \
    }                                                                                                                                                                     \
    _res_sqlite3session_patchset;                                                                                                                                         \
})
#define sqlite3session_patchset_strm(...) \
({                                                                                                                                                                                       \
    __auto_type _res_sqlite3session_patchset_strm = 0 ? sqlite3session_patchset_strm(__VA_ARGS__) : 0;                                                                                   \
                                                                                                                                                                                         \
    _res_sqlite3session_patchset_strm = (typeof (_res_sqlite3session_patchset_strm))APSW_FaultInjectControl("sqlite3session_patchset_strm", __FILE__, __func__, __LINE__, #__VA_ARGS__); \
                                                                                                                                                                                         \
    if ((typeof (_res_sqlite3session_patchset_strm))0x1FACADE == _res_sqlite3session_patchset_strm)                                                                                      \
       _res_sqlite3session_patchset_strm = sqlite3session_patchset_strm(__VA_ARGS__);                                                                                                    \
    else if ((typeof(_res_sqlite3session_patchset_strm))0x2FACADE == _res_sqlite3session_patchset_strm)                                                                                  \
    {                                                                                                                                                                                    \
        sqlite3session_patchset_strm(__VA_ARGS__);                                                                                                                                       \
        _res_sqlite3session_patchset_strm = (typeof (_res_sqlite3session_patchset_strm))18;                                                                                              \
    }                                                                                                                                                                                    \
    _res_sqlite3session_patchset_strm;                                                                                                                                                   \
})
#endif
#endif
#endif
