aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r--src/nvim/api/private/helpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h
index cc74824402..0ea7667428 100644
--- a/src/nvim/api/private/helpers.h
+++ b/src/nvim/api/private/helpers.h
@@ -48,6 +48,10 @@
.type = kObjectTypeDictionary, \
.data.dictionary = d })
+#define LUAREF_OBJ(r) ((Object) { \
+ .type = kObjectTypeLuaRef, \
+ .data.luaref = r })
+
#define NIL ((Object) {.type = kObjectTypeNil})
#define PUT(dict, k, v) \