1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Merge the compile-time option introspection interfaces into the trunk.

FossilOrigin-Name: 9f429434c0404f03a3e5c6741b769afe98a5c6c9
This commit is contained in:
drh
2010-02-23 20:32:15 +00:00
11 changed files with 512 additions and 25 deletions

View File

@@ -384,7 +384,12 @@ int sqlite3_config(int op, ...){
** NULL.
*/
case SQLITE_CONFIG_LOG: {
sqlite3GlobalConfig.xLog = va_arg(ap, void(*)(void*,int,const char*));
/* MSVC is picky about pulling func ptrs from va lists.
** http://support.microsoft.com/kb/47961
** sqlite3GlobalConfig.xLog = va_arg(ap, void(*)(void*,int,const char*));
*/
typedef void(*LOGFUNC_t)(void*,int,const char*);
sqlite3GlobalConfig.xLog = va_arg(ap, LOGFUNC_t);
sqlite3GlobalConfig.pLogArg = va_arg(ap, void*);
break;
}