#include <assert.h>
#include <inttypes.h>
#include <stddef.h>
#include "nvim/eval/encode.h"
#include "nvim/eval/typval.h"
#include "nvim/eval/typval_encode.h"
#include "nvim/func_attr.h"
#include "nvim/lib/kvec.h"
Go to the source code of this file.
Functions | |
TYPVAL_ENCODE_SCOPE int | _TYPVAL_ENCODE_ENCODE (TYPVAL_ENCODE_FIRST_ARG_TYPE TYPVAL_ENCODE_FIRST_ARG_NAME, typval_T *const tv, const char *const objname) REAL_FATTR_NONNULL_ARG(2 |
Variables | |
const dict_T *const | TYPVAL_ENCODE_NODICT_VAR = NULL |
static int REAL_FATTR_WARN_UNUSED_RESULT | REAL_FATTR_ALWAYS_INLINE |
static int | REAL_FATTR_WARN_UNUSED_RESULT |
Contains set of macros used to convert (possibly recursive) typval_T into something else. For these macros to work the following macros must be defined:
TYPVAL_ENCODE_SCOPE int _TYPVAL_ENCODE_ENCODE | ( | TYPVAL_ENCODE_FIRST_ARG_TYPE | TYPVAL_ENCODE_FIRST_ARG_NAME, |
typval_T *const | top_tv, | ||
const char *const | objname | ||
) |
Convert the whole typval
TYPVAL_ENCODE_FIRST_ARG_NAME | First argument, defined by the includer. Only meaningful to macros defined by the includer. | |
top_tv | Converted value. | |
[in] | objname | Object name, used for error reporting. |
Label common for this and convert_one_value functions, used for escaping from macros like TYPVAL_ENCODE_CONV_DICT_START.
int REAL_FATTR_WARN_UNUSED_RESULT REAL_FATTR_ALWAYS_INLINE |
TYPVAL_ENCODE_SCOPE int REAL_FATTR_WARN_UNUSED_RESULT |