Current code (as of 2023/1/17)
Code: Select all
type
Tsqlite3_destructor_type = procedure(user: pointer); cdecl;
SQLITE_STATIC = procedure(User: Pointer = Nil); cdecl;
SQLITE_TRANSIENT = procedure(User: pointer = Pointer(-1)); cdecl;
Code: Select all
typedef void (*sqlite3_destructor_type)(void*);
#define SQLITE_STATIC ((sqlite3_destructor_type)0)
#define SQLITE_TRANSIENT ((sqlite3_destructor_type)-1)
so the actual translation should be
Code: Select all
type
Tsqlite3_destructor_type = procedure(Ptr: Pointer); cdecl;
const
SQLITE_STATIC: Tsqlite3_destructor_type = nil;
SQLITE_TRANSIENT: Tsqlite3_destructor_type = Pointer(-1);
Code: Select all
type
sqlite3_destructor_type = procedure(user: pointer); cdecl;
const
SQLITE_STATIC = sqlite3_destructor_type(nil);
SQLITE_TRANSIENT = pointer(-1); //sqlite3_destructor_type(-1);