1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

DBD::SQLite: let us know if the debug macros are enabled

This commit is contained in:
Kenichi Ishigaki 2009-11-03 17:24:34 +00:00
parent 70bf9a7c52
commit e60d50b81e
2 changed files with 6 additions and 1 deletions

View file

@ -10,7 +10,7 @@ DBISTATE_DECLARE;
* Debug Macros * Debug Macros
*-----------------------------------------------------*/ *-----------------------------------------------------*/
#define DBD_SQLITE_CROAK_DEBUG #undef DBD_SQLITE_CROAK_DEBUG
#ifdef DBD_SQLITE_CROAK_DEBUG #ifdef DBD_SQLITE_CROAK_DEBUG
#define croak_if_db_is_null() if (!imp_dbh->db) croak("imp_dbh->db is NULL at line %d in %s", __LINE__, __FILE__) #define croak_if_db_is_null() if (!imp_dbh->db) croak("imp_dbh->db is NULL at line %d in %s", __LINE__, __FILE__)

View file

@ -31,6 +31,11 @@ foreach my $file (@c_files) {
next FILE; next FILE;
} }
} }
if (/#define\s+DBD_SQLITE_CROAK_DEBUG/) {
fail("debug macro is enabled in $file line $line");
next FILE;
}
} }
pass("$file has no C++ comments"); pass("$file has no C++ comments");
close(F); close(F);