Panda3D
dtool
src
dtoolutil
config_dtoolutil.cxx
1
// Filename: config_dtoolutil.cxx
2
// Created by: drose (17Nov06)
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_dtoolutil.h"
16
17
#include "filename.h"
18
#include "pandaSystem.h"
19
20
////////////////////////////////////////////////////////////////////
21
// Function: init_libdtoolutil
22
// Description: Initializes the library. This must be called at
23
// least once before any of the functions or classes in
24
// this library can be used. Normally it will be
25
// called by the static initializers and need not be
26
// called explicitly, but special cases exist.
27
////////////////////////////////////////////////////////////////////
28
void
29
init_libdtoolutil() {
30
static
bool
initialized =
false
;
31
if
(initialized) {
32
return
;
33
}
34
initialized =
true
;
35
36
Filename::init_type();
37
PandaSystem::init_type();
38
}
39
40
class
InitDtoolutil
{
41
public
:
42
InitDtoolutil
() {
43
init_libdtoolutil();
44
}
45
};
46
47
static
InitDtoolutil
_init;
InitDtoolutil
Definition:
config_dtoolutil.cxx:40
Generated on Wed May 17 2017 23:39:18 for Panda3D by
1.8.13