로딩중...
검색중...
일치하는것 없음
evaluator.hpp
이 파일의 문서화 페이지로 가기
1
5/*
6 * Copyright (C) 2012 William Swanson
7 *
8 * Permission is hereby granted, free of charge, to any person
9 * obtaining a copy of this software and associated documentation
10 * files (the "Software"), to deal in the Software without
11 * restriction, including without limitation the rights to use, copy,
12 * modify, merge, publish, distribute, sublicense, and/or sell copies
13 * of the Software, and to permit persons to whom the Software is
14 * furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be
17 * included in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
23 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
24 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 *
27 * Except as contained in this notice, the names of the authors or
28 * their institutions shall not be used in advertising or otherwise to
29 * promote the sale, use or other dealings in this Software without
30 * prior written authorization from the authors.
31 */
32#pragma once
33
34#define _BY_EVAL0(...) __VA_ARGS__
35#define _BY_EVAL1(...) _BY_EVAL0(_BY_EVAL0(_BY_EVAL0(__VA_ARGS__)))
36#define _BY_EVAL2(...) _BY_EVAL1(_BY_EVAL1(_BY_EVAL1(__VA_ARGS__)))
37#define _BY_EVAL3(...) _BY_EVAL2(_BY_EVAL2(_BY_EVAL2(__VA_ARGS__)))
38#define _BY_EVAL4(...) _BY_EVAL3(_BY_EVAL3(_BY_EVAL3(__VA_ARGS__)))
39#define BY_EVAL(...) _BY_EVAL4(_BY_EVAL4(_BY_EVAL4(__VA_ARGS__)))