Quantum++
v1.0.0-beta1
C++11 quantum computing library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
macros.h
Go to the documentation of this file.
1
/*
2
* Quantum++
3
*
4
* Copyright (c) 2013 - 2016 Vlad Gheorghiu (vgheorgh@gmail.com)
5
*
6
* This file is part of Quantum++.
7
*
8
* Quantum++ is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* Quantum++ is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with Quantum++. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
27
#ifndef MACROS_H_
28
#define MACROS_H_
29
30
// Useful macros
31
#ifdef DEBUG
32
33
#define PRINT(x) std::cout << (x)
34
35
#define PRINTLN(x) std::cout << (x) << std::endl
36
37
#define ERROR(x) std::cerr << (x)
38
39
#define ERRORLN(x) std::cerr << (x) << std::endl
40
#else
41
42
#define PRINT(x)
43
44
#define PRINTLN(x)
45
46
#define ERROR(x)
47
48
#define ERRORLN(x)
49
#endif
50
51
#endif
/* MACROS_H_ */
macros.h
Generated on Mon Oct 10 2016 15:17:38 for Quantum++ by
1.8.9.1