wplua: add g_autoptr support to lua_State

This commit is contained in:
George Kiagiadakis 2021-02-01 16:17:18 +02:00
parent 94d527e187
commit 84f1b4b484

View file

@ -77,6 +77,8 @@ gboolean wplua_load_buffer (lua_State * L, const gchar *buf, gsize size,
gboolean wplua_load_uri (lua_State * L, const gchar *uri, GError **error);
gboolean wplua_load_path (lua_State * L, const gchar *path, GError **error);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(lua_State, wplua_free)
G_END_DECLS
#endif