Go to the source code of this file.
#define forcedinline inline __attribute__((always_inline)) |
#define JUCE_ALIGN |
( |
|
bytes | ) |
__attribute__ ((aligned (bytes))) |
#define JUCE_ANALYZER_NORETURN |
#define juce_breakDebugger { __asm int 3 } |
This macro defines the C calling convention used as the standard for Juce calls.
#define JUCE_CATCH_ALL_ASSERT |
#define JUCE_CATCH_EXCEPTION |
This macro allows you to emit a custom compiler warning message. Very handy for marking bits of code as "to-do" items, or for shaming code written by your co-workers in a way that's hard to ignore.
GCC and Clang provide the #warning directive, but MSVC doesn't, so this macro is a cross-compiler way to get the same functionality as #warning.
#define JUCE_DECLARE_NON_COPYABLE |
( |
|
className | ) |
|
Value:
className& operator= (
const className&) JUCE_DELETED_FUNCTION;
#define JUCE_DELETED_FUNCTION
Definition: juce_CompilerSupport.h:133
This is a shorthand macro for declaring stubs for a class's copy constructor and operator=.
For example, instead of
6 MyClass (const MyClass&);
7 MyClass& operator= (const MyClass&);
..you can just write:
6 JUCE_DECLARE_NON_COPYABLE (MyClass)
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR |
( |
|
className | ) |
|
Value:
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
This is a shorthand way of writing both a JUCE_DECLARE_NON_COPYABLE and JUCE_LEAK_DETECTOR macro for a class.
#define JUCE_DEPRECATED |
( |
|
functionDef | ) |
functionDef |
#define JUCE_DEPRECATED_WITH_BODY |
( |
|
functionDef, |
|
|
|
body |
|
) |
| functionDef body |
A good old-fashioned C macro concatenation helper. This combines two items (which may themselves be macros) into a single string, avoiding the pitfalls of the ## macro operator.
#define JUCE_JOIN_MACRO_HELPER |
( |
|
a, |
|
|
|
b |
|
) |
| a ## b |
#define juce_LogCurrentAssertion |
#define JUCE_MODAL_LOOPS_PERMITTED 1 |
Some operating environments don't provide a modal loop mechanism, so this flag can be used to disable any functions that try to run a modal loop.
#define JUCE_PREVENT_HEAP_ALLOCATION |
Value:private: \
#define JUCE_DELETED_FUNCTION
Definition: juce_CompilerSupport.h:133
This macro can be added to class definitions to disable the use of new/delete to allocate the object on the heap, forcing it to only be used as a stack or member variable.
A handy C macro for stringifying any symbol, rather than just a macro parameter.
#define JUCE_STRINGIFY_MACRO_HELPER |
( |
|
a | ) |
#a |
#define JUCE_WARNING_HELPER |
( |
|
mess | ) |
message(#mess) |
#define MACRO_WITH_FORCED_SEMICOLON |
( |
|
x | ) |
do { x } while (false) |
This is the good old C++ trick for creating a macro that forces the user to put a semicolon after it when they use it.
A compile-time assertion macro. If the expression parameter is false, the macro will cause a compile error. (The actual error message that the compiler generates may be completely bizarre and seem to have no relation to the place where you put the static_assert though!)