DOKK / manpages / debian 11 / allegro4-doc / push_config_state.3alleg4.en
push_config_state(3alleg4) Allegro manual push_config_state(3alleg4)

push_config_state - Pushes the current configuration state. Allegro game programming library.

#include <allegro.h>

void push_config_state();

Pushes the current configuration state (filename, variable values, etc). onto an internal stack, allowing you to select some other config source and later restore the current settings by calling pop_config_state(). This function is mostly intended for internal use by other library functions, for example when you specify a config filename to the save_joystick_data() function, it pushes the config state before switching to the file you specified.

pop_config_state(3alleg4), set_config_file(3alleg4), save_joystick_data(3alleg4), exconfig(3alleg4)

version 4.4.3 Allegro