~ultradvorka/+junk/mindforger

« back to all changes in this revision

Viewing changes to lib/src/gear/lang_utils.h

  • Committer: Martin Dvorak (Dvorka)
  • Date: 2018-05-15 07:08:52 UTC
  • Revision ID: martin.dvorak@mindforger.com-20180515070852-qt83zifaqrbj0a2f
Update for mindforger_0.7.6 at 2018-05-15--09-08-40.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 lang-utils.h     MindForger thinking notebook
 
3
 
 
4
 Copyright (C) 2016-2018 Martin Dvorak <martin.dvorak@mindforger.com>
 
5
 
 
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.
 
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
 
17
 along with this program. If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
#ifndef M8R_LANG_UTILS_H
 
20
#define M8R_LANG_UTILS_H
 
21
 
 
22
// casting to void is defined by C++ standard as a way to discard values/surpress
 
23
// compiler warnings:
 
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)
 
26
 
 
27
#endif // M8R_LANG_UTILS_H