/* call-seq: db.closed? * * Returns +true+ if this database instance has been closed (see #close). */ static VALUE closed_p(VALUE self) { sqlite3RubyPtr ctx; Data_Get_Struct(self, sqlite3Ruby, ctx); if(!ctx->db) return Qtrue; return Qfalse; }