My Project
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
define.cpp
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
* Documents produced by Doxygen are derivative works derived from the
14
* input used in their production; they are not affected by this license.
15
*
16
*/
17
18
#include "
define.h
"
19
#include "
config.h
"
20
21
Define::Define
()
22
{
23
fileDef
=0;
24
lineNr
=1;
25
columnNr
=1;
26
nargs
=-1;
27
undef
=FALSE;
28
varArgs
=FALSE;
29
isPredefined
=FALSE;
30
nonRecursive
=FALSE;
31
}
32
33
Define::Define
(
const
Define
&d)
34
: name(d.name),definition(d.definition),fileName(d.fileName)
35
{
36
//name=d.name; definition=d.definition; fileName=d.fileName;
37
lineNr
=d.
lineNr
;
38
columnNr
=d.
columnNr
;
39
nargs
=d.
nargs
;
40
undef
=d.
undef
;
41
varArgs
=d.
varArgs
;
42
isPredefined
=d.
isPredefined
;
43
nonRecursive
=d.
nonRecursive
;
44
fileDef
=0;
45
}
46
47
Define::~Define
()
48
{
49
}
50
51
bool
Define::hasDocumentation
()
52
{
53
return
definition
&& (
doc
||
Config_getBool
(EXTRACT_ALL));
54
}