Flutter Engine
The Flutter Engine
Functions
filterfuzz.cpp File Reference
#include "include/core/SkGraphics.h"
#include "tools/flags/CommandLineFlags.h"

Go to the source code of this file.

Functions

static DEFINE_int_2 (option, o, 0, "An option")
 
static void exitf (const char *format,...) SK_PRINTF_LIKE(1
 
int main (int argc, char **argv)
 

Function Documentation

◆ DEFINE_int_2()

static DEFINE_int_2 ( option  ,
,
,
"An option"   
)
static

◆ exitf()

static void static void exitf ( const char *  format,
  ... 
)
static

Definition at line 12 of file filterfuzz.cpp.

12 {
13 va_list args;
15 vfprintf(stderr, format, args);
16 va_end(args);
17
18 exit(1);
19}
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
uint32_t uint32_t * format
va_start(args, format)
exit(kErrorExitCode)
va_end(args)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 21 of file filterfuzz.cpp.

21 {
23
24 if (FLAGS_option) {
25 exitf("Invalid option\n");
26 }
27
29
30 return 0;
31}
static void Parse(int argc, const char *const *argv)
static void Init()
Definition: SkGraphics.cpp:22
static void exitf(const char *format,...) SK_PRINTF_LIKE(1
Definition: filterfuzz.cpp:12
char ** argv
Definition: library.h:9