Flutter Engine
The Flutter Engine
filterfuzz.cpp
Go to the documentation of this file.
1// Copyright 2021 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4
7
8static DEFINE_int_2(option, o, 0, "An option");
9
10static void exitf(const char* format, ...) SK_PRINTF_LIKE(1, 2);
11
12static void exitf(const char* format, ...) {
13 va_list args;
15 vfprintf(stderr, format, args);
16 va_end(args);
17
18 exit(1);
19}
20
21int main(int argc, char** argv) {
23
24 if (FLAGS_option) {
25 exitf("Invalid option\n");
26 }
27
29
30 return 0;
31}
#define SK_PRINTF_LIKE(A, B)
Definition: SkAttributes.h:52
static void Parse(int argc, const char *const *argv)
static void Init()
Definition: SkGraphics.cpp:22
int main(int argc, char **argv)
Definition: filterfuzz.cpp:21
static DEFINE_int_2(option, o, 0, "An option")
static void exitf(const char *format,...) SK_PRINTF_LIKE(1
Definition: filterfuzz.cpp:12
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
uint32_t uint32_t * format
char ** argv
Definition: library.h:9
va_start(args, format)
exit(kErrorExitCode)
va_end(args)