00001 // Filename: config_deadrec.cxx 00002 // Created by: drose (23Oct06) 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 "config_deadrec.h" 00016 00017 #include "dconfig.h" 00018 00019 Configure(config_deadrec); 00020 NotifyCategoryDef(deadrec, ""); 00021 00022 ConfigureFn(config_deadrec) { 00023 init_libdeadrec(); 00024 } 00025 00026 ConfigVariableBool accept_clock_skew 00027 ("accept-clock-skew", false, 00028 PRC_DESC("This controls the default value of " 00029 "SmoothMover::get_accept_clock_skew().")); 00030 00031 00032 //////////////////////////////////////////////////////////////////// 00033 // Function: init_libdeadrec 00034 // Description: Initializes the library. This must be called at 00035 // least once before any of the functions or classes in 00036 // this library can be used. Normally it will be 00037 // called by the static initializers and need not be 00038 // called explicitly, but special cases exist. 00039 //////////////////////////////////////////////////////////////////// 00040 void 00041 init_libdeadrec() { 00042 static bool initialized = false; 00043 if (initialized) { 00044 return; 00045 } 00046 initialized = true; 00047 } 00048