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 ABORT(...) (fprintf(stderr, __VA_ARGS__), abort())
16 #define SkASSERT(x) (void)((x) || (ABORT("failed SkASSERT(%s): %s:%d\n", #x, __FILE__, __LINE__), 0))
17 
18 #endif
19