summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2021-11-03 15:15:20 +0100
committerNiklas Haas <git@haasn.dev>2021-11-03 15:15:20 +0100
commit8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419 (patch)
tree711a7721171eec477016a9d7fcfb892376b72371 /options
parent701bd783cafa9fbe6dc5c34d8784193179a9290d (diff)
downloadmpv-8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419.tar.bz2
mpv-8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419.tar.xz
osdep: rename MP_UNREACHABLE
It was pointed out on IRC that the name is misleading, since the actual semantics of the macro is to assert first.
Diffstat (limited to 'options')
-rw-r--r--options/m_config_core.c2
-rw-r--r--options/parse_configfile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/options/m_config_core.c b/options/m_config_core.c
index fd476a0627..4f8c462db1 100644
--- a/options/m_config_core.c
+++ b/options/m_config_core.c
@@ -879,7 +879,7 @@ void mp_read_option_raw(struct mpv_global *global, const char *name,
}
}
- MP_UNREACHABLE(); // not found
+ MP_ASSERT_UNREACHABLE(); // not found
}
static const struct m_config_group *find_group(struct mpv_global *global,
diff --git a/options/parse_configfile.c b/options/parse_configfile.c
index 1ef256989f..1d8c3d1299 100644
--- a/options/parse_configfile.c
+++ b/options/parse_configfile.c
@@ -176,7 +176,7 @@ static bstr read_file(struct mp_log *log, const char *filename)
}
size += s;
}
- MP_UNREACHABLE();
+ MP_ASSERT_UNREACHABLE();
}
// Load options and profiles from from a config file.