aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h
index bcea225..714556e 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -261,6 +261,14 @@ inline void luaG_pushglobaltable(lua_State* const L_)
261 261
262// ################################################################################################# 262// #################################################################################################
263 263
264inline void luaG_setfield(lua_State* const L_, int const idx_, char const* k_) = delete;
265inline void luaG_setfield(lua_State* const L_, int const idx_, std::string_view const& k_)
266{
267 lua_setfield(L_, idx_, k_.data());
268}
269
270// #################################################################################################
271
264inline void luaG_setmetatable(lua_State* const L_, std::string_view const& tname_) 272inline void luaG_setmetatable(lua_State* const L_, std::string_view const& tname_)
265{ 273{
266 // fake externs to make clang happy... 274 // fake externs to make clang happy...