diff options
author | ZyX <kp-pav@yandex.ru> | 2016-01-24 03:40:44 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:44:03 +0300 |
commit | 44cbf45d2696f210a1fa05bf6babea30bcec7616 (patch) | |
tree | 2ece7e17b1fa6dc0de7199b3f7067dfdfb14189a /src/nvim/macros.h | |
parent | 83c683f5e15867c2e2889442860e91fd1074b4e1 (diff) | |
download | rneovim-44cbf45d2696f210a1fa05bf6babea30bcec7616.tar.gz rneovim-44cbf45d2696f210a1fa05bf6babea30bcec7616.tar.bz2 rneovim-44cbf45d2696f210a1fa05bf6babea30bcec7616.zip |
eval: Split out typval_T dumping functions to nvim/encode.c
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r-- | src/nvim/macros.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index 26ab5a7de7..5f69fa2f6a 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -1,6 +1,17 @@ #ifndef NVIM_MACROS_H #define NVIM_MACROS_H +// EXTERN is only defined in main.c. That's where global variables are +// actually defined and initialized. +#ifndef EXTERN +# define EXTERN extern +# define INIT(...) +#else +# ifndef INIT +# define INIT(...) __VA_ARGS__ +# endif +#endif + #ifndef MIN # define MIN(X, Y) ((X) < (Y) ? (X) : (Y)) #endif |