ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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)

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 )
Value:
((opts) && (opts)->name##_explicit)
Examples
/home/runner/work/ascii-chat/ascii-chat/include/ascii-chat/options/explicit.h.

Definition at line 57 of file explicit.h.

Referenced by debug_errno_start_thread(), and main().