mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-07 06:55:53 +01:00
use attribute pure
This commit is contained in:
parent
c96f9679b4
commit
00400b697f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user