Hi, I want to define a following function:
if(stmtToFinalize) {
NSLog(@"Finalizing statement stmtToFinalize");
if (sqlite3_finalize(stmtToFinalize) !=SQLITE_OK)
NSLog(@"An error occured while trying to finalize a statement stmtToFinalize: '%s'", sqlite3_errmsg(database));
stmtToFinalize = NULL;
}
But I am not familiar with the #define directive. I want instead of stmtToFinalize to have any statement of type sqlite3_stmt.
How can I implement it?
Thank you.