mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
vt: only define esc_as_string() when debug logging has been enabled
This commit is contained in:
parent
cd9510aa7b
commit
66f941d00a
1 changed files with 2 additions and 0 deletions
2
vt.c
2
vt.c
|
|
@ -567,6 +567,7 @@ static const enum action exit_actions[] = {
|
||||||
[STATE_SOS_PM_APC_STRING] = ACTION_NONE,
|
[STATE_SOS_PM_APC_STRING] = ACTION_NONE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(LOG_ENABLE_DBG) && LOG_ENABLE_DBG
|
||||||
static const char *
|
static const char *
|
||||||
esc_as_string(struct terminal *term, uint8_t final)
|
esc_as_string(struct terminal *term, uint8_t final)
|
||||||
{
|
{
|
||||||
|
|
@ -585,6 +586,7 @@ esc_as_string(struct terminal *term, uint8_t final)
|
||||||
return msg;
|
return msg;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
esc_dispatch(struct terminal *term, uint8_t final)
|
esc_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue