diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-29 18:40:39 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-27 00:12:42 +0300 |
commit | 9114d9be778b07f4a49edc078f1c159aa51320d8 (patch) | |
tree | c89808b3a62862e7893c8127d7f1b373f8916067 /src/nvim/macros.h | |
parent | b4e2860c69a4e96fa305b535ce0dbdde37632fe1 (diff) | |
download | rneovim-9114d9be778b07f4a49edc078f1c159aa51320d8.tar.gz rneovim-9114d9be778b07f4a49edc078f1c159aa51320d8.tar.bz2 rneovim-9114d9be778b07f4a49edc078f1c159aa51320d8.zip |
executor: Add :luado command
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r-- | src/nvim/macros.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 650bf76156..5042663041 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -19,6 +19,15 @@ # define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) #endif +/// String with length +/// +/// For use in functions which accept (char *s, size_t len) pair in arguments. +/// +/// @param[in] s Static string. +/// +/// @return `s, sizeof(s) - 1` +#define S_LEN(s) (s), (sizeof(s) - 1) + /* * Position comparisons */ |