A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
log-macros-disabled.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2014 Andrey Mazo
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Andrey Mazo <ahippo@yandex.com>
19
*/
20
21
#ifndef NS3_LOG_MACROS_DISABLED_H
22
#define NS3_LOG_MACROS_DISABLED_H
23
24
#ifndef NS3_LOG_ENABLE
25
26
#define NS_LOG_NOOP_INTERNAL(msg) \
27
do \
28
{ \
29
if (false) \
30
{ \
31
std::clog << msg; \
32
} \
33
} \
34
while (false)
35
36
#define NS_LOG(level, msg) \
37
NS_LOG_NOOP_INTERNAL (msg)
38
39
#define NS_LOG_FUNCTION_NOARGS()
40
41
#define NS_LOG_FUNCTION(parameters) \
42
NS_LOG_NOOP_INTERNAL (parameters)
43
44
#define NS_LOG_UNCOND(msg) \
45
NS_LOG_NOOP_INTERNAL (msg)
46
47
48
#endif
/* !NS3_LOG_ENABLE */
49
50
#endif
/* NS3_LOG_MACROS_DISABLED_H */
src
core
model
log-macros-disabled.h
Generated on Thu Feb 5 2015 18:33:34 for ns-3 by
1.8.9.1