Panda3D

configVariable.cxx

00001 // Filename: configVariable.cxx
00002 // Created by:  drose (18Oct04)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "configVariable.h"
00016 #include "config_prc.h"
00017 
00018 ////////////////////////////////////////////////////////////////////
00019 //     Function: ConfigVariable::report_unconstructed
00020 //       Access: Protected
00021 //  Description: Displays a suitable error message when an
00022 //               unconstructed ConfigVariable is attempted to be used.
00023 //               This normally indicates a static-init ordering issue.
00024 ////////////////////////////////////////////////////////////////////
00025 void ConfigVariable::
00026 report_unconstructed() const {
00027   prc_cat->error()
00028     << "ConfigVariable " << this
00029     << " accessed before its constructor has run!\n";
00030   record_unconstructed();
00031 }
00032 
 All Classes Functions Variables Enumerations