37#define GED_CHECK_DATABASE_OPEN(_gedp, _flags) \
38 if ((_gedp) == GED_NULL || (_gedp)->dbip == DBI_NULL) { \
39 int ged_check_database_open_quiet = (_flags) & GED_QUIET; \
40 if (!ged_check_database_open_quiet) { \
41 if ((_gedp) != GED_NULL) { \
42 bu_vls_trunc((_gedp)->ged_result_str, 0); \
43 bu_vls_printf((_gedp)->ged_result_str, "A database is not open!"); \
45 bu_log("A database is not open!\n"); \
Header file for the BRL-CAD common definitions.
int ged_who_argv(struct ged *gedp, char **start, const char **end)
size_t ged_who_argc(struct ged *gedp)
int ged_dbcopy(struct ged *from_gedp, struct ged *to_gedp, const char *from, const char *to, int fflag)
int ged_path_validate(struct ged *gedp, const struct db_full_path *const path)