use attribute pure

This commit is contained in:
SlowRiot 2026-03-31 17:09:11 +01:00
parent c96f9679b4
commit 00400b697f

View File

@ -160,7 +160,7 @@ static const std::unordered_map<std::string, ImGuiKey> key_translate_lookup{
{"Pause", ImGuiKey_Pause},
};
ImGuiKey translate_key(char const* emscripten_key) __attribute__((__const__));
ImGuiKey translate_key(char const* emscripten_key) __attribute__((__pure__));
ImGuiKey translate_key(char const* emscripten_key)
{
// Translate an emscripten-provided browser string describing a keycode to an imgui key code