Panda3D
 All Classes Functions Variables Enumerations
config_deadrec.cxx
1 // Filename: config_deadrec.cxx
2 // Created by: drose (23Oct06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_deadrec.h"
16 
17 #include "dconfig.h"
18 
19 Configure(config_deadrec);
20 NotifyCategoryDef(deadrec, "");
21 
22 ConfigureFn(config_deadrec) {
23  init_libdeadrec();
24 }
25 
26 ConfigVariableBool accept_clock_skew
27 ("accept-clock-skew", false,
28  PRC_DESC("This controls the default value of "
29  "SmoothMover::get_accept_clock_skew()."));
30 
31 
32 ////////////////////////////////////////////////////////////////////
33 // Function: init_libdeadrec
34 // Description: Initializes the library. This must be called at
35 // least once before any of the functions or classes in
36 // this library can be used. Normally it will be
37 // called by the static initializers and need not be
38 // called explicitly, but special cases exist.
39 ////////////////////////////////////////////////////////////////////
40 void
41 init_libdeadrec() {
42  static bool initialized = false;
43  if (initialized) {
44  return;
45  }
46  initialized = true;
47 }
48 
This is a convenience class to specialize ConfigVariable as a boolean type.