aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-04-03 17:48:39 +0200
committerGitHub <noreply@github.com>2021-04-03 17:48:39 +0200
commit804ea22944146a6607859dbfcf35d24946b065e2 (patch)
tree94d3ebac9ae1bcbbf45cc000e644155e419d39ba /src/nvim/lua/executor.h
parentabdda664108646a8f1bd3112abb8083d721d38e6 (diff)
parent2df527e1ff1c599448b6b21953132c0022a8b9ad (diff)
downloadrneovim-804ea22944146a6607859dbfcf35d24946b065e2.tar.gz
rneovim-804ea22944146a6607859dbfcf35d24946b065e2.tar.bz2
rneovim-804ea22944146a6607859dbfcf35d24946b065e2.zip
Merge pull request #14226 from bfredl/luarefcount
lua: track reference ownership with ASAN when present
Diffstat (limited to 'src/nvim/lua/executor.h')
-rw-r--r--src/nvim/lua/executor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/lua/executor.h b/src/nvim/lua/executor.h
index 1d7a15d9aa..ea774ac2e3 100644
--- a/src/nvim/lua/executor.h
+++ b/src/nvim/lua/executor.h
@@ -16,6 +16,8 @@ void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL;
EXTERN LuaRef nlua_nil_ref INIT(= LUA_NOREF);
EXTERN LuaRef nlua_empty_dict_ref INIT(= LUA_NOREF);
+EXTERN int nlua_refcount INIT(= 0);
+
#define set_api_error(s, err) \
do { \
Error *err_ = (err); \