Panda3D
Loading...
Searching...
No Matches
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 */
22void ConfigVariable::
23report_unconstructed() const {
24 prc_cat->error()
25 << "ConfigVariable " << this
26 << " accessed before its constructor has run!\n";
27 record_unconstructed();
28}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.