2
lang-utils.h MindForger thinking notebook
4
Copyright (C) 2016-2018 Martin Dvorak <martin.dvorak@mindforger.com>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
as published by the Free Software Foundation; either version 2
9
of the License, or (at your option) any later version.
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.
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef M8R_LANG_UTILS_H
20
#define M8R_LANG_UTILS_H
22
// casting to void is defined by C++ standard as a way to discard values/surpress
24
// "Any expression can be explicitly converted to type 'cv void'. Such expression value is discarded."
25
#define UNUSED_ARG(expr) do { (void)(expr); } while (0)
27
#endif // M8R_LANG_UTILS_H