MAX_SETTINGS_DEPTH
static struct thp_settings settings_stack[MAX_SETTINGS_DEPTH];
if (settings_index >= MAX_SETTINGS_DEPTH) {