Go to the source code of this file.
◆ DBG
◆ forcedinline
#define forcedinline inline __attribute__((always_inline)) |
◆ jassert
◆ jassertfalse
◆ JUCE_ALIGN
#define JUCE_ALIGN |
( |
|
bytes | ) |
__attribute__ ((aligned (bytes))) |
◆ JUCE_ANALYZER_NORETURN
#define JUCE_ANALYZER_NORETURN |
◆ juce_breakDebugger
#define juce_breakDebugger { __asm int 3 } |
◆ JUCE_CALLTYPE
This macro defines the C calling convention used as the standard for Juce calls.
◆ JUCE_CATCH_ALL
◆ JUCE_CATCH_ALL_ASSERT
#define JUCE_CATCH_ALL_ASSERT |
◆ JUCE_CATCH_EXCEPTION
#define JUCE_CATCH_EXCEPTION |
◆ JUCE_CDECL
◆ JUCE_COMPILER_WARNING
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.
◆ JUCE_DECLARE_NON_COPYABLE
#define JUCE_DECLARE_NON_COPYABLE |
( |
|
className | ) |
|
Value:#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
class MyClass
{
etc..
private:
MyClass (const MyClass&);
MyClass& operator= (const MyClass&);
};
..you can just write:
class MyClass
{
etc..
private:
};
◆ JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR |
( |
|
className | ) |
|
Value: JUCE_LEAK_DETECTOR(className)
This is a shorthand way of writing both a JUCE_DECLARE_NON_COPYABLE and JUCE_LEAK_DETECTOR macro for a class.
◆ JUCE_DEPRECATED
#define JUCE_DEPRECATED |
( |
|
functionDef | ) |
functionDef |
◆ JUCE_DEPRECATED_WITH_BODY
#define JUCE_DEPRECATED_WITH_BODY |
( |
|
functionDef, |
|
|
|
body |
|
) |
| functionDef body |
◆ JUCE_JOIN_MACRO
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.
◆ JUCE_JOIN_MACRO_HELPER
#define JUCE_JOIN_MACRO_HELPER |
( |
|
a, |
|
|
|
b |
|
) |
| a ## b |
◆ juce_LogCurrentAssertion
#define juce_LogCurrentAssertion |
◆ JUCE_MODAL_LOOPS_PERMITTED
#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.
◆ JUCE_PACKED
◆ JUCE_PREVENT_HEAP_ALLOCATION
#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.
◆ JUCE_STRINGIFY
A handy C macro for stringifying any symbol, rather than just a macro parameter.
◆ JUCE_STRINGIFY_MACRO_HELPER
#define JUCE_STRINGIFY_MACRO_HELPER |
( |
|
a | ) |
#a |
◆ JUCE_TRY
◆ JUCE_WARNING_HELPER
#define JUCE_WARNING_HELPER |
( |
|
mess | ) |
message(#mess) |
◆ MACRO_WITH_FORCED_SEMICOLON
#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.
◆ static_jassert
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!)