17ConfigVariableBase::Unconstructed *ConfigVariableBase::_unconstructed;
24ConfigVariableBase(
const std::string &name,
26 const std::string &description,
int flags) :
30 if (was_unconstructed()) {
32 <<
"Late constructing " <<
this <<
": " << name <<
"\n";
39#ifdef PRC_SAVE_DESCRIPTIONS
40 if (!description.empty()) {
41 _core->set_description(description);
45 _core->set_flags(flags);
55void ConfigVariableBase::
56record_unconstructed()
const {
58 if (_unconstructed ==
nullptr) {
59 _unconstructed =
new Unconstructed;
61 _unconstructed->insert(
this);
69bool ConfigVariableBase::
70was_unconstructed()
const {
72 if (_unconstructed !=
nullptr) {
73 Unconstructed::const_iterator ui = _unconstructed->find(
this);
74 if (ui != _unconstructed->end()) {
A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.