DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
helpers.h
Go to the documentation of this file.
1
// --------------------------------------------------------------------------
2
// DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3
// AND EFFORT DISPLACEMENT
4
// Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5
6
// This program is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation; either version 2 of the License, or
9
// (at your option) any later version.
10
11
// This program is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
15
16
// You should have received a copy of the GNU General Public License along
17
// with this program; if not, write to the Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
// --------------------------------------------------------------------------
20
21
#ifndef HELPERS_H
22
#define HELPERS_H
23
24
#include <
commons_global.h
>
25
26
/* Hint: in Qt Creator you can fix the dout << "blablah"; with dout(cout<<"blablah"); using find/replace regexp
27
* find: cout(.*); replace: dout(cout \1);
28
* */
29
30
extern
int
COMMONSSHARED_EXPORT
verbosity
;
31
32
#define outv(l,x) { if (verbosity >= l) { x; } }
33
34
#define dout(x) outv(3,x)
35
#define outc(x) outv(2,x)
36
#define tout(x) outv(1,x)
37
38
#define UNUSED(expr) do { (void)(expr); } while (0)
39
40
#endif // HELPERS_H
verbosity
int COMMONSSHARED_EXPORT verbosity
Definition:
statics.cpp:6
commons_global.h
COMMONSSHARED_EXPORT
#define COMMONSSHARED_EXPORT
Definition:
commons_global.h:23
include
helpers.h
Generated by
1.8.15