Panda3D
dtool
src
dtoolutil
config_dtoolutil.cxx
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file config_dtoolutil.cxx
10
* @author drose
11
* @date 2006-11-17
12
*/
13
14
#include "
config_dtoolutil.h
"
15
16
#include "
filename.h
"
17
#include "
pandaSystem.h
"
18
19
#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_DTOOL_DTOOLUTIL)
20
#error Buildsystem error: BUILDING_DTOOL_DCTOOLUTIL not defined
21
#endif
22
23
/**
24
* Initializes the library. This must be called at least once before any of
25
* the functions or classes in this library can be used. Normally it will be
26
* called by the static initializers and need not be called explicitly, but
27
* special cases exist.
28
*/
29
void
30
init_libdtoolutil
() {
31
static
bool
initialized =
false
;
32
if
(initialized) {
33
return
;
34
}
35
initialized =
true
;
36
37
Filename::init_type();
38
PandaSystem::init_type();
39
}
40
41
class
InitDtoolutil {
42
public
:
43
InitDtoolutil() {
44
init_libdtoolutil
();
45
}
46
};
47
48
static
InitDtoolutil _init;
config_dtoolutil.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
filename.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandaSystem.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
init_libdtoolutil
void init_libdtoolutil()
Initializes the library.
Definition:
config_dtoolutil.cxx:30
Generated on Mon Sep 14 2020 15:06:42 for Panda3D by
1.8.20