bytevector.test: Use any supported Latin-1 locale.
[guile-r6rs-libs.git] / src / utils.h
blob5c90b4c686248791df3e5ed57f839d90861d4586
1 /* Guile-R6RS-Libs --- Implementation of R6RS standard libraries.
2 Copyright (C) 2007 Ludovic Courtès <ludovic.courtes@laas.fr>
4 Guile-R6RS-Libs is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 Guile-R6RS-Libs 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 GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with Guile-R6RS-Libs; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
18 #ifndef GUILE_R6RS_UTILS_H
19 #define GUILE_R6RS_UTILS_H
21 /* Common utilities. */
23 #ifdef __GNUC__
24 # define EXPECT __builtin_expect
25 #else
26 # define EXPECT(_expr, _value) (_expr)
27 #endif
29 #define EXPECT_TRUE(_expr) EXPECT ((_expr), 1)
30 #define EXPECT_FALSE(_expr) EXPECT ((_expr), 0)
32 #endif
34 /* arch-tag: 878d0655-2504-4154-bf27-fab06652ebd5