Panda3D

configVariable.cxx
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file configVariable.cxx
10 * @author drose
11 * @date 2004-10-18
12 */
13
14 #include "configVariable.h"
15 #include "config_prc.h"
16
17 /**
18 * Displays a suitable error message when an unconstructed ConfigVariable is
19 * attempted to be used. This normally indicates a static-init ordering
20 * issue.
21 */
22 void ConfigVariable::
23 report_unconstructed() const {
24 prc_cat->error()
25 << "ConfigVariable " << this
26 << " accessed before its constructor has run!\n";
27 record_unconstructed();
28 }
configVariable.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
config_prc.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.