Debian Codegraph @

src/sksl/lex/LexUtil.h

raw
1 /*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SKSL_LEXUTIL
9 #define SKSL_LEXUTIL
10
11 #include <cstdlib>
12
13 #define INVALID -1
14
15 #define SK_ABORT(...) (fprintf(stderr, __VA_ARGS__), abort())
16 #define SkASSERT(x) \
17 (void)((x) || (SK_ABORT("failed SkASSERT(%s): %s:%d\n", #x, __FILE__, __LINE__), 0))
18 #define SkUNREACHABLE (SK_ABORT("unreachable"))
19
20 #endif