aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/converter.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-09-10 19:58:09 +0200
committerGitHub <noreply@github.com>2020-09-10 19:58:09 +0200
commit7ba28b1aedcb88ef5643b32dc4a6bf92ac090fed (patch)
treeb0dfb89dedf36704bf292713485fc544fc0248a8 /src/nvim/lua/converter.c
parent5581ac88c60b0a3f7595088b30a8621f280b5e4c (diff)
parent5f3ddb195e10d11bf83818dad8b9d8822e51b4fa (diff)
downloadrneovim-7ba28b1aedcb88ef5643b32dc4a6bf92ac090fed.tar.gz
rneovim-7ba28b1aedcb88ef5643b32dc4a6bf92ac090fed.tar.bz2
rneovim-7ba28b1aedcb88ef5643b32dc4a6bf92ac090fed.zip
Merge pull request #12881 from bfredl/unexecute
lua: cleanup naming conventions of executor functions
Diffstat (limited to 'src/nvim/lua/converter.c')
-rw-r--r--src/nvim/lua/converter.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/lua/converter.c b/src/nvim/lua/converter.c
index 32e804d213..030df69caa 100644
--- a/src/nvim/lua/converter.c
+++ b/src/nvim/lua/converter.c
@@ -1249,6 +1249,13 @@ type_error:
return ret;
}
+LuaRef nlua_pop_LuaRef(lua_State *const lstate, Error *err)
+{
+ LuaRef rv = nlua_ref(lstate, -1);
+ lua_pop(lstate, 1);
+ return rv;
+}
+
#define GENERATE_INDEX_FUNCTION(type) \
type nlua_pop_##type(lua_State *lstate, Error *err) \
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT \