mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
utility: Add some extra functionality
This commit is contained in:
parent
ad270bc6ee
commit
a6ce6c5860
1 changed files with 14 additions and 2 deletions
|
@ -22,6 +22,11 @@
|
|||
#include <cinttypes>
|
||||
#include <limits>
|
||||
|
||||
extern "C" {
|
||||
#include <obs-config.h>
|
||||
#include <obs.h>
|
||||
}
|
||||
|
||||
const char* obs_module_recursive_text(const char* to_translate, size_t depth = std::numeric_limits<size_t>::max());
|
||||
|
||||
template<typename Enum>
|
||||
|
@ -49,8 +54,8 @@ typename std::enable_if<enable_bitmask_operators<Enum>::enable, Enum>::type oper
|
|||
static const bool enable = true; \
|
||||
};
|
||||
|
||||
#define vstr(s) dstr(s)
|
||||
#define dstr(s) #s
|
||||
#define D_STR(s) #s
|
||||
#define D_VSTR(s) D_STR(s)
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define INITIALIZER(f) \
|
||||
|
@ -79,3 +84,10 @@ typename std::enable_if<enable_bitmask_operators<Enum>::enable, Enum>::type oper
|
|||
static void f(void) __attribute__((constructor)); \
|
||||
static void f(void)
|
||||
#endif
|
||||
|
||||
namespace util {
|
||||
bool inline are_property_groups_broken()
|
||||
{
|
||||
return obs_get_version() < MAKE_SEMANTIC_VERSION(24, 0, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue