LMMS
Loading...
Searching...
No Matches
CarlaDefines.h File Reference
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define __has_feature(x)
#define __has_extension   __has_feature
#define CARLA_VERSION_HEX   0x020591
#define CARLA_VERSION_STRING   "2.6.0-alpha1"
#define CARLA_VERSION_STRMIN   "2.6"
#define constexpr   /* note: constexpr is coming to C soon, but no compilers support it yet */
#define P_INT64   "%lli"
#define P_UINT64   "%llu"
#define P_INTPTR   "%i"
#define P_UINTPTR   "%x"
#define P_SIZE   "%u"
#define P_SSIZE   "%i"
#define BINARY_NATIVE   BINARY_POSIX32
#define unlikely(x)
#define CARLA_ASSERT(cond)
#define CARLA_ASSERT_INT(cond, value)
#define CARLA_ASSERT_INT2(cond, v1, v2)
#define CARLA_SAFE_ASSERT(cond)
#define CARLA_SAFE_ASSERT_INT(cond, value)
#define CARLA_SAFE_ASSERT_INT2(cond, v1, v2)
#define CARLA_SAFE_ASSERT_UINT(cond, value)
#define CARLA_SAFE_ASSERT_UINT2(cond, v1, v2)
#define CARLA_SAFE_ASSERT_BREAK(cond)
#define CARLA_SAFE_ASSERT_CONTINUE(cond)
#define CARLA_SAFE_ASSERT_RETURN(cond, ret)
#define CARLA_CUSTOM_SAFE_ASSERT(msg, cond)
#define CARLA_CUSTOM_SAFE_ASSERT_BREAK(msg, cond)
#define CARLA_CUSTOM_SAFE_ASSERT_CONTINUE(msg, cond)
#define CARLA_CUSTOM_SAFE_ASSERT_RETURN(msg, cond, ret)
#define CARLA_CUSTOM_SAFE_ASSERT_ONCE_BREAK(msg, cond)
#define CARLA_CUSTOM_SAFE_ASSERT_ONCE_CONTINUE(msg, cond)
#define CARLA_CUSTOM_SAFE_ASSERT_ONCE_RETURN(msg, cond, ret)
#define CARLA_SAFE_ASSERT_INT_BREAK(cond, value)
#define CARLA_SAFE_ASSERT_INT_CONTINUE(cond, value)
#define CARLA_SAFE_ASSERT_INT_RETURN(cond, value, ret)
#define CARLA_SAFE_ASSERT_INT2_BREAK(cond, v1, v2)
#define CARLA_SAFE_ASSERT_INT2_CONTINUE(cond, v1, v2)
#define CARLA_SAFE_ASSERT_INT2_RETURN(cond, v1, v2, ret)
#define CARLA_SAFE_ASSERT_UINT_BREAK(cond, value)
#define CARLA_SAFE_ASSERT_UINT_CONTINUE(cond, value)
#define CARLA_SAFE_ASSERT_UINT_RETURN(cond, value, ret)
#define CARLA_SAFE_ASSERT_UINT2_BREAK(cond, v1, v2)
#define CARLA_SAFE_ASSERT_UINT2_CONTINUE(cond, v1, v2)
#define CARLA_SAFE_ASSERT_UINT2_RETURN(cond, v1, v2, ret)
#define CARLA_CATCH_UNWIND
#define CARLA_SAFE_EXCEPTION(msg)
#define CARLA_SAFE_EXCEPTION_BREAK(msg)
#define CARLA_SAFE_EXCEPTION_CONTINUE(msg)
#define CARLA_SAFE_EXCEPTION_RETURN(msg, ret)
#define CARLA_DECLARE_NON_COPYABLE(ClassName)
#define CARLA_PREVENT_HEAP_ALLOCATION
#define CARLA_PREVENT_VIRTUAL_HEAP_ALLOCATION
#define CARLA_VISIBLE_SYMBOL   __attribute__ ((visibility("default")))
#define CARLA_API   CARLA_VISIBLE_SYMBOL
#define CARLA_EXTERN_C
#define CARLA_API_EXPORT   CARLA_EXTERN_C CARLA_API
#define CARLA_PLUGIN_EXPORT   CARLA_EXTERN_C CARLA_VISIBLE_SYMBOL
#define CARLA_OS_SEP   '/'
#define CARLA_OS_SEP_STR   "/"
#define CARLA_OS_SPLIT   ':'
#define CARLA_OS_SPLIT_STR   ":"

Typedefs

typedef unsigned char uchar
typedef unsigned short int ushort
typedef unsigned int uint
typedef unsigned long int ulong
typedef unsigned long long int ulonglong

Macro Definition Documentation

◆ __has_extension

#define __has_extension   __has_feature

◆ __has_feature

#define __has_feature ( x)
Value:
0

◆ BINARY_NATIVE

#define BINARY_NATIVE   BINARY_POSIX32

◆ CARLA_API

#define CARLA_API   CARLA_VISIBLE_SYMBOL

◆ CARLA_API_EXPORT

#define CARLA_API_EXPORT   CARLA_EXTERN_C CARLA_API

◆ CARLA_ASSERT

#define CARLA_ASSERT ( cond)
Value:
assert(cond)
assert(0)

◆ CARLA_ASSERT_INT

#define CARLA_ASSERT_INT ( cond,
value )
Value:
assert(cond)

◆ CARLA_ASSERT_INT2

#define CARLA_ASSERT_INT2 ( cond,
v1,
v2 )
Value:
assert(cond)

◆ CARLA_CATCH_UNWIND

#define CARLA_CATCH_UNWIND

◆ CARLA_CUSTOM_SAFE_ASSERT

#define CARLA_CUSTOM_SAFE_ASSERT ( msg,
cond )
Value:
if (unlikely(!(cond))) carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__);
#define unlikely(x)
Definition CarlaDefines.h:163
const char * msg
Definition missing_descriptor.c:20

◆ CARLA_CUSTOM_SAFE_ASSERT_BREAK

#define CARLA_CUSTOM_SAFE_ASSERT_BREAK ( msg,
cond )
Value:
if (unlikely(!(cond))) { carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__); break; }

◆ CARLA_CUSTOM_SAFE_ASSERT_CONTINUE

#define CARLA_CUSTOM_SAFE_ASSERT_CONTINUE ( msg,
cond )
Value:
if (unlikely(!(cond))) { carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__); continue; }

◆ CARLA_CUSTOM_SAFE_ASSERT_ONCE_BREAK

#define CARLA_CUSTOM_SAFE_ASSERT_ONCE_BREAK ( msg,
cond )
Value:
if (unlikely(!(cond))) { static bool _p; if (!_p) { _p = true; carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__); } break; }

◆ CARLA_CUSTOM_SAFE_ASSERT_ONCE_CONTINUE

#define CARLA_CUSTOM_SAFE_ASSERT_ONCE_CONTINUE ( msg,
cond )
Value:
if (unlikely(!(cond))) { static bool _p; if (!_p) { _p = true; carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__); } continue; }

◆ CARLA_CUSTOM_SAFE_ASSERT_ONCE_RETURN

#define CARLA_CUSTOM_SAFE_ASSERT_ONCE_RETURN ( msg,
cond,
ret )
Value:
if (unlikely(!(cond))) { static bool _p; if (!_p) { _p = true; carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__); } return ret; }

◆ CARLA_CUSTOM_SAFE_ASSERT_RETURN

#define CARLA_CUSTOM_SAFE_ASSERT_RETURN ( msg,
cond,
ret )
Value:
if (unlikely(!(cond))) { carla_custom_safe_assert(msg, #cond, __FILE__, __LINE__); return ret; }

◆ CARLA_DECLARE_NON_COPYABLE

#define CARLA_DECLARE_NON_COPYABLE ( ClassName)
Value:
private: \
ClassName(ClassName&); \
ClassName(const ClassName&); \
ClassName& operator=(ClassName&); \
ClassName& operator=(const ClassName&);

◆ CARLA_EXTERN_C

#define CARLA_EXTERN_C

◆ CARLA_OS_SEP

#define CARLA_OS_SEP   '/'

◆ CARLA_OS_SEP_STR

#define CARLA_OS_SEP_STR   "/"

◆ CARLA_OS_SPLIT

#define CARLA_OS_SPLIT   ':'

◆ CARLA_OS_SPLIT_STR

#define CARLA_OS_SPLIT_STR   ":"

◆ CARLA_PLUGIN_EXPORT

#define CARLA_PLUGIN_EXPORT   CARLA_EXTERN_C CARLA_VISIBLE_SYMBOL

◆ CARLA_PREVENT_HEAP_ALLOCATION

#define CARLA_PREVENT_HEAP_ALLOCATION
Value:
private: \
static void* operator new(std::size_t); \
static void operator delete(void*);

◆ CARLA_PREVENT_VIRTUAL_HEAP_ALLOCATION

#define CARLA_PREVENT_VIRTUAL_HEAP_ALLOCATION
Value:
private: \
static void* operator new(std::size_t);

◆ CARLA_SAFE_ASSERT

#define CARLA_SAFE_ASSERT ( cond)
Value:
if (unlikely(!(cond))) carla_safe_assert (#cond, __FILE__, __LINE__);

◆ CARLA_SAFE_ASSERT_BREAK

#define CARLA_SAFE_ASSERT_BREAK ( cond)
Value:
if (unlikely(!(cond))) { carla_safe_assert(#cond, __FILE__, __LINE__); break; }

◆ CARLA_SAFE_ASSERT_CONTINUE

#define CARLA_SAFE_ASSERT_CONTINUE ( cond)
Value:
if (unlikely(!(cond))) { carla_safe_assert(#cond, __FILE__, __LINE__); continue; }

◆ CARLA_SAFE_ASSERT_INT

#define CARLA_SAFE_ASSERT_INT ( cond,
value )
Value:
if (unlikely(!(cond))) carla_safe_assert_int (#cond, __FILE__, __LINE__, static_cast<int>(value));
static PuglViewHint int value
Definition pugl.h:1708

◆ CARLA_SAFE_ASSERT_INT2

#define CARLA_SAFE_ASSERT_INT2 ( cond,
v1,
v2 )
Value:
if (unlikely(!(cond))) carla_safe_assert_int2 (#cond, __FILE__, __LINE__, static_cast<int>(v1), static_cast<int>(v2));
static void v2(register WDL_FFT_REAL *a)
Definition fft.c:1099

◆ CARLA_SAFE_ASSERT_INT2_BREAK

#define CARLA_SAFE_ASSERT_INT2_BREAK ( cond,
v1,
v2 )
Value:
if (unlikely(!(cond))) { carla_safe_assert_int2(#cond, __FILE__, __LINE__, static_cast<int>(v1), static_cast<int>(v2)); break; }

◆ CARLA_SAFE_ASSERT_INT2_CONTINUE

#define CARLA_SAFE_ASSERT_INT2_CONTINUE ( cond,
v1,
v2 )
Value:
if (unlikely(!(cond))) { carla_safe_assert_int2(#cond, __FILE__, __LINE__, static_cast<int>(v1), static_cast<int>(v2)); continue; }

◆ CARLA_SAFE_ASSERT_INT2_RETURN

#define CARLA_SAFE_ASSERT_INT2_RETURN ( cond,
v1,
v2,
ret )
Value:
if (unlikely(!(cond))) { carla_safe_assert_int2(#cond, __FILE__, __LINE__, static_cast<int>(v1), static_cast<int>(v2)); return ret; }

◆ CARLA_SAFE_ASSERT_INT_BREAK

#define CARLA_SAFE_ASSERT_INT_BREAK ( cond,
value )
Value:
if (unlikely(!(cond))) { carla_safe_assert_int(#cond, __FILE__, __LINE__, static_cast<int>(value)); break; }

◆ CARLA_SAFE_ASSERT_INT_CONTINUE

#define CARLA_SAFE_ASSERT_INT_CONTINUE ( cond,
value )
Value:
if (unlikely(!(cond))) { carla_safe_assert_int(#cond, __FILE__, __LINE__, static_cast<int>(value)); continue; }

◆ CARLA_SAFE_ASSERT_INT_RETURN

#define CARLA_SAFE_ASSERT_INT_RETURN ( cond,
value,
ret )
Value:
if (unlikely(!(cond))) { carla_safe_assert_int(#cond, __FILE__, __LINE__, static_cast<int>(value)); return ret; }

◆ CARLA_SAFE_ASSERT_RETURN

#define CARLA_SAFE_ASSERT_RETURN ( cond,
ret )
Value:
if (unlikely(!(cond))) { carla_safe_assert(#cond, __FILE__, __LINE__); return ret; }

◆ CARLA_SAFE_ASSERT_UINT

#define CARLA_SAFE_ASSERT_UINT ( cond,
value )
Value:
if (unlikely(!(cond))) carla_safe_assert_uint (#cond, __FILE__, __LINE__, static_cast<uint>(value));
unsigned int uint
Definition CarlaDefines.h:327

◆ CARLA_SAFE_ASSERT_UINT2

#define CARLA_SAFE_ASSERT_UINT2 ( cond,
v1,
v2 )
Value:
if (unlikely(!(cond))) carla_safe_assert_uint2(#cond, __FILE__, __LINE__, static_cast<uint>(v1), static_cast<uint>(v2));

◆ CARLA_SAFE_ASSERT_UINT2_BREAK

#define CARLA_SAFE_ASSERT_UINT2_BREAK ( cond,
v1,
v2 )
Value:
if (unlikely(!(cond))) { carla_safe_assert_uint2(#cond, __FILE__, __LINE__, static_cast<uint>(v1), static_cast<uint>(v2)); break; }

◆ CARLA_SAFE_ASSERT_UINT2_CONTINUE

#define CARLA_SAFE_ASSERT_UINT2_CONTINUE ( cond,
v1,
v2 )
Value:
if (unlikely(!(cond))) { carla_safe_assert_uint2(#cond, __FILE__, __LINE__, static_cast<uint>(v1), static_cast<uint>(v2)); continue; }

◆ CARLA_SAFE_ASSERT_UINT2_RETURN

#define CARLA_SAFE_ASSERT_UINT2_RETURN ( cond,
v1,
v2,
ret )
Value:
if (unlikely(!(cond))) { carla_safe_assert_uint2(#cond, __FILE__, __LINE__, static_cast<uint>(v1), static_cast<uint>(v2)); return ret; }

◆ CARLA_SAFE_ASSERT_UINT_BREAK

#define CARLA_SAFE_ASSERT_UINT_BREAK ( cond,
value )
Value:
if (unlikely(!(cond))) { carla_safe_assert_uint(#cond, __FILE__, __LINE__, static_cast<uint>(value); break; }

◆ CARLA_SAFE_ASSERT_UINT_CONTINUE

#define CARLA_SAFE_ASSERT_UINT_CONTINUE ( cond,
value )
Value:
if (unlikely(!(cond))) { carla_safe_assert_uint(#cond, __FILE__, __LINE__, static_cast<uint>(value)); continue; }

◆ CARLA_SAFE_ASSERT_UINT_RETURN

#define CARLA_SAFE_ASSERT_UINT_RETURN ( cond,
value,
ret )
Value:
if (unlikely(!(cond))) { carla_safe_assert_uint(#cond, __FILE__, __LINE__, static_cast<uint>(value)); return ret; }

◆ CARLA_SAFE_EXCEPTION

#define CARLA_SAFE_EXCEPTION ( msg)
Value:
CARLA_CATCH_UNWIND catch(...) { carla_safe_exception(msg, __FILE__, __LINE__); }
#define CARLA_CATCH_UNWIND
Definition CarlaDefines.h:224

◆ CARLA_SAFE_EXCEPTION_BREAK

#define CARLA_SAFE_EXCEPTION_BREAK ( msg)
Value:
CARLA_CATCH_UNWIND catch(...) { carla_safe_exception(msg, __FILE__, __LINE__); break; }

◆ CARLA_SAFE_EXCEPTION_CONTINUE

#define CARLA_SAFE_EXCEPTION_CONTINUE ( msg)
Value:
CARLA_CATCH_UNWIND catch(...) { carla_safe_exception(msg, __FILE__, __LINE__); continue; }

◆ CARLA_SAFE_EXCEPTION_RETURN

#define CARLA_SAFE_EXCEPTION_RETURN ( msg,
ret )
Value:
CARLA_CATCH_UNWIND catch(...) { carla_safe_exception(msg, __FILE__, __LINE__); return ret; }

◆ CARLA_VERSION_HEX

#define CARLA_VERSION_HEX   0x020591

◆ CARLA_VERSION_STRING

#define CARLA_VERSION_STRING   "2.6.0-alpha1"

◆ CARLA_VERSION_STRMIN

#define CARLA_VERSION_STRMIN   "2.6"

◆ CARLA_VISIBLE_SYMBOL

#define CARLA_VISIBLE_SYMBOL   __attribute__ ((visibility("default")))

◆ constexpr

#define constexpr   /* note: constexpr is coming to C soon, but no compilers support it yet */

◆ P_INT64

#define P_INT64   "%lli"

◆ P_INTPTR

#define P_INTPTR   "%i"

◆ P_SIZE

#define P_SIZE   "%u"

◆ P_SSIZE

#define P_SSIZE   "%i"

◆ P_UINT64

#define P_UINT64   "%llu"

◆ P_UINTPTR

#define P_UINTPTR   "%x"

◆ unlikely

#define unlikely ( x)
Value:
unsigned x[BMAX+1]
Definition inflate.c:1586

Typedef Documentation

◆ uchar

typedef unsigned char uchar

◆ uint

typedef unsigned int uint

◆ ulong

typedef unsigned long int ulong

◆ ulonglong

typedef unsigned long long int ulonglong

◆ ushort

typedef unsigned short int ushort