fix: moved macros

This commit is contained in:
Jakub Łuczyński 2020-02-11 15:57:26 +01:00
parent c7ef0e8d2d
commit e367e80e11
2 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,6 @@
#define FC_REMOVED 0x20 // function redefined while uf_refcount > 0 #define FC_REMOVED 0x20 // function redefined while uf_refcount > 0
#define FC_SANDBOX 0x40 // function defined in the sandbox #define FC_SANDBOX 0x40 // function defined in the sandbox
#define FUNCARG(fp, j) ((char_u **)(fp->uf_args.ga_data))[j]
#define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j]
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
#include "eval/user_funcs.c.generated.h" #include "eval/user_funcs.c.generated.h"
#endif #endif

View File

@ -26,6 +26,9 @@ typedef enum {
typedef int (*ArgvFunc)(int current_argcount, typval_T *argv, typedef int (*ArgvFunc)(int current_argcount, typval_T *argv,
int called_func_argcount); int called_func_argcount);
#define FUNCARG(fp, j) ((char_u **)(fp->uf_args.ga_data))[j]
#define FUNCLINE(fp, j) ((char_u **)(fp->uf_lines.ga_data))[j]
#ifdef INCLUDE_GENERATED_DECLARATIONS #ifdef INCLUDE_GENERATED_DECLARATIONS
# include "eval/user_funcs.h.generated.h" # include "eval/user_funcs.h.generated.h"
#endif #endif