mightymandel v16

GPU-based Mandelbrot set explorer

startup.c File Reference

(v16)

#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "logging.h"
#include "parse.h"
#include "utility.h"
#include "startup.h"
#include "version.h"
#include "config.glsl"
+ Include dependency graph for startup.c:

Go to the source code of this file.

Macros

#define O(flag)   (0 == strcmp((flag), argv[i]) && strlen((flag)) == strlen(argv[i]))
#define NEXT   do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", argv[i-1]); return false; } }while(0)
#define NEXT2(s)   do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", s); return false; } }while(0)

Functions

void print_version (void)
void print_banner (void)
void print_usage (const char *progname)
bool parse_command_line (struct options *options, int argc, char **argv)

Macro Definition Documentation

#define NEXT   do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", argv[i-1]); return false; } }while(0)

Referenced by parse_command_line().

#define NEXT2 (   s)    do{ i++; if (! (i < argc)) { log_message(LOG_FATAL, "%s: argument expected\n", s); return false; } }while(0)

Referenced by parse_command_line().

#define O (   flag)    (0 == strcmp((flag), argv[i]) && strlen((flag)) == strlen(argv[i]))

Referenced by parse_command_line().

Function Documentation

bool parse_command_line ( struct options options,
int  argc,
char **  argv 
)
void print_banner ( void  )

Definition at line 22 of file startup.c.

References LOG_INFO, log_message, and mightymandel_version.

Referenced by main().

+ Here is the caller graph for this function:

void print_usage ( const char *  progname)

Definition at line 29 of file startup.c.

References SLICE_MAX.

Referenced by main().

+ Here is the caller graph for this function:

void print_version ( void  )

Definition at line 18 of file startup.c.

References mightymandel_version.

Referenced by main().

+ Here is the caller graph for this function: