mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-27 15:46:13 -04:00
libobs: Add preprocessor directive for AutoRelease types
Since these helpers come from obs-websocket, obs-websocket needs a way to disable its own helpers if OBS is new enough to include them already.
This commit is contained in:
@@ -47,6 +47,7 @@ using OBSWeakEncoder = OBSRef<obs_weak_encoder_t *, obs_weak_encoder_addref,
|
||||
using OBSWeakService = OBSRef<obs_weak_service_t *, obs_weak_service_addref,
|
||||
obs_weak_service_release>;
|
||||
|
||||
#define OBS_AUTORELEASE
|
||||
inline void ___source_dummy_addref(obs_source_t *){};
|
||||
inline void ___scene_dummy_addref(obs_scene_t *){};
|
||||
inline void ___sceneitem_dummy_addref(obs_sceneitem_t *){};
|
||||
|
||||
Reference in New Issue
Block a user