aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/lex/LexUtil.h
blob: 338b864646cdb66f94b23defccd5c404c52c5a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright 2017 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SKSL_LEXUTIL
#define SKSL_LEXUTIL

#include <cstdlib>

#define INVALID -1

#define ABORT(...) (fprintf(stderr, __VA_ARGS__), abort())
#define SkASSERT(x) (void)((x) || (ABORT("failed SkASSERT(%s): %s:%d\n", #x, __FILE__, __LINE__), 0))

#endif