Macros
helpers.h File Reference
#include <msgpack.h>
#include <stdbool.h>
#include <stdint.h>
#include "nvim/api/private/defs.h"
#include "nvim/event/wstream.h"

Go to the source code of this file.

Macros

#define EXT_OBJECT_TYPE_SHIFT   kObjectTypeBuffer
 
#define EXT_OBJECT_TYPE_MAX   (kObjectTypeTabpage - EXT_OBJECT_TYPE_SHIFT)
 

Macro Definition Documentation

◆ EXT_OBJECT_TYPE_MAX

#define EXT_OBJECT_TYPE_MAX   (kObjectTypeTabpage - EXT_OBJECT_TYPE_SHIFT)

◆ EXT_OBJECT_TYPE_SHIFT

#define EXT_OBJECT_TYPE_SHIFT   kObjectTypeBuffer

Value by which objects represented as EXT type are shifted

Subtracted when packing, added when unpacking. Used to allow moving buffer/window/tabpage block inside ObjectType enum. This block yet cannot be split or reordered.