]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/vlc.h
Do not store p_this in a table value visible from lua code.
[vlc] / modules / misc / lua / vlc.h
index e6e13d2ca82be2aabf313413ec67084cb49c2f69..20b19fd500779f375ddbc875167c8f0f25c584e2 100644 (file)
@@ -91,6 +91,8 @@ static inline const char *luaL_nilorcheckstring( lua_State *L, int narg )
     return luaL_checkstring( L, narg );
 }
 
+#define vlclua_set_this(a, b) __vlclua_set_this(a, VLC_OBJECT(b))
+void __vlclua_set_this( lua_State *, vlc_object_t * );
 vlc_object_t * vlclua_get_this( lua_State * );
 
 /*****************************************************************************