ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
explicit.h File Reference

Check if an option was explicitly set via command-line. More...

Go to the source code of this file.

Macros

#define IS_OPTION_EXPLICIT(name, opts)    ((opts) && (opts)->name##_explicit)
 

Detailed Description

Check if an option was explicitly set via command-line.

Simple macro to check if an option was explicitly provided by the user (as opposed to using a default value).

Explicit tracking fields are stored directly in options_t as ${optionName}_explicit. Only frequently-checked options have explicit tracking to avoid struct bloat.

Usage

// Check if user explicitly set an option
if (IS_OPTION_EXPLICIT("splash_screen", opts)) {
printf("User explicitly set splash_screen\n");
}
#define IS_OPTION_EXPLICIT(name, opts)
Definition explicit.h:57
Author
Zachary Fogg me@zf.nosp@m.o.gg
Date
February 2026

Definition in file explicit.h.

Macro Definition Documentation

◆ IS_OPTION_EXPLICIT

#define IS_OPTION_EXPLICIT (   name,
  opts 
)     ((opts) && (opts)->name##_explicit)