mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
fix(map): use names like Map_key_value not Map_keyvalue
This makes little difference in practice except for extremely unlikely ambiguities. But it looks nicer in compiler errors and stacktraces where you see the fully expanded names
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
# define VAL_NAME(x) quasiquote(x, ptr_t)
|
||||
#endif
|
||||
|
||||
#define MAP_NAME(x) VAL_NAME(KEY_NAME(x))
|
||||
#define after_underscore(x) quasiquote(x, _)
|
||||
#define MAP_NAME(x) VAL_NAME(after_underscore(KEY_NAME(x)))
|
||||
#define MAP_TYPE MAP_NAME(Map_)
|
||||
#define KEY_TYPE KEY_NAME()
|
||||
#define VALUE_TYPE VAL_NAME()
|
||||
|
||||
Reference in New Issue
Block a user