Panda3D
config_skel.cxx
1 // Filename: config_skel.cxx
2 // Created by: jyelon (09Feb07)
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_skel.h"
16 #include "basicSkel.h"
17 #include "typedSkel.h"
18 #include "dconfig.h"
19 
20 Configure(config_skel);
21 NotifyCategoryDef(skel, "");
22 
23 ConfigureFn(config_skel) {
24  init_libskel();
25 }
26 
27 ConfigVariableInt skel_sample_config_variable
28 ("skel-sample-config-variable", 3);
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: init_libskel
32 // Description: Initializes the library. This must be called at
33 // least once before any of the functions or classes in
34 // this library can be used. Normally it will be
35 // called by the static initializers and need not be
36 // called explicitly, but special cases exist.
37 ////////////////////////////////////////////////////////////////////
38 void
39 init_libskel() {
40  static bool initialized = false;
41  if (initialized) {
42  return;
43  }
44  initialized = true;
45 
46  TypedSkel::init_type();
47 }
48 
This is a convenience class to specialize ConfigVariable as an integer type.