Loading...
Searching...
No Matches
juce_core.h File Reference

## Namespaces

namespace | juce

## Macros

#define | JUCE_CORE_H_INCLUDED
#define | JUCE_INCLUDE_ZLIB_CODE 0
| Debian specific constants.
#define | JUCE_INCLUDE_FLAC_CODE 0
#define | JUCE_INCLUDE_OGGVORBIS_CODE 0
#define | JUCE_INCLUDE_JPEGLIB_CODE 0
#define | JUCE_INCLUDE_PNGLIB_CODE 0
#define | JUCE_LOG_ASSERTIONS 1
| Debian specifics END.
#define | JUCE_CHECK_MEMORY_LEAKS 1
| Config: JUCE_CHECK_MEMORY_LEAKS.
#define | JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
| Config: JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES.
#define | JUCE_ZLIB_INCLUDE_PATH <zlib.h>
| Config: JUCE_INCLUDE_ZLIB_CODE This can be used to disable Juce's embedded 3rd-party zlib code.
#define | JUCE_USE_CURL 1
| Config: JUCE_USE_CURL Enables http/https support via libcurl (Linux only).
#define | JUCE_LOAD_CURL_SYMBOLS_LAZILY 0
| Config: JUCE_LOAD_CURL_SYMBOLS_LAZILY If enabled, JUCE will load libcurl lazily when required (for example, when WebInputStream is used).
#define | JUCE_CATCH_UNHANDLED_EXCEPTIONS 0
| Config: JUCE_CATCH_UNHANDLED_EXCEPTIONS If enabled, this will add some exception-catching code to forward unhandled exceptions to your JUCEApplicationBase::unhandledException() callback.
#define | JUCE_ALLOW_STATIC_NULL_VARIABLES 0
| Config: JUCE_ALLOW_STATIC_NULL_VARIABLES If disabled, this will turn off dangerous static globals like String::empty, var::null, etc which can cause nasty order-of-initialisation problems if they are referenced during static constructor code.
#define | JUCE_STRICT_REFCOUNTEDPOINTER 0
| Config: JUCE_STRICT_REFCOUNTEDPOINTER If enabled, this will make the ReferenceCountedObjectPtr class stricter about allowing itself to be cast directly to a raw pointer.
#define | JUCE_STRING_UTF_TYPE 8
| Config: JUCE_ENABLE_ALLOCATION_HOOKS If enabled, this will add global allocation functions with built-in assertions, which may help when debugging allocations in unit tests.

## Functions

bool | juce::juce_isRunningUnderDebugger () noexcept
void | juce::logAssertion (const char *file, int line) noexcept

## Macro Definition Documentation

## JUCE_CORE_H_INCLUDED

#define JUCE_CORE_H_INCLUDED

## JUCE_INCLUDE_ZLIB_CODE

#define JUCE_INCLUDE_ZLIB_CODE 0

Debian specific constants.

- Debian, we don't use embedded libraries

## JUCE_INCLUDE_FLAC_CODE

#define JUCE_INCLUDE_FLAC_CODE 0

## JUCE_INCLUDE_OGGVORBIS_CODE

#define JUCE_INCLUDE_OGGVORBIS_CODE 0

## JUCE_INCLUDE_JPEGLIB_CODE

#define JUCE_INCLUDE_JPEGLIB_CODE 0

## JUCE_INCLUDE_PNGLIB_CODE

#define JUCE_INCLUDE_PNGLIB_CODE 0

## JUCE_LOG_ASSERTIONS

#define JUCE_LOG_ASSERTIONS 1

Debian specifics END.

Config: JUCE_FORCE_DEBUG

Normally, JUCE_DEBUG is set to 1 or 0 based on compiler and project settings, but if you define this value, you can override this to force it to be true or false. Config: JUCE_LOG_ASSERTIONS

If this flag is enabled, the jassert and jassertfalse macros will always use Logger::writeToLog() to write a message when an assertion happens.

Enabling it will also leave this turned on in release builds. When it's disabled, however, the jassert and jassertfalse macros will not be compiled in a release build.

See also
  jassert, jassertfalse, Logger

## JUCE_CHECK_MEMORY_LEAKS

#define JUCE_CHECK_MEMORY_LEAKS 1

Config: JUCE_CHECK_MEMORY_LEAKS.

Enables a memory-leak check for certain objects when the app terminates. See the LeakedObjectDetector class and the JUCE_LEAK_DETECTOR macro for more details about enabling leak checking for specific classes.

## JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES

#define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0

Config: JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES.

In a Windows build, this can be used to stop the required system libs being automatically added to the link stage.

## JUCE_ZLIB_INCLUDE_PATH

#define JUCE_ZLIB_INCLUDE_PATH <zlib.h>

Config: JUCE_INCLUDE_ZLIB_CODE This can be used to disable Juce's embedded 3rd-party zlib code.

You might need to tweak this if you're linking to an external zlib library in your app, but for normal apps, this option should be left alone.

If you disable this, you might also want to set a value for JUCE_ZLIB_INCLUDE_PATH, to specify the path where your zlib headers live.

## JUCE_USE_CURL

#define JUCE_USE_CURL 1

Config: JUCE_USE_CURL Enables http/https support via libcurl (Linux only).

Enabling this will add an additional run-time dynamic dependency to libcurl.

If you disable this then https/ssl support will not be available on Linux.

## JUCE_LOAD_CURL_SYMBOLS_LAZILY

#define JUCE_LOAD_CURL_SYMBOLS_LAZILY 0

Config: JUCE_LOAD_CURL_SYMBOLS_LAZILY If enabled, JUCE will load libcurl lazily when required (for example, when WebInputStream is used).

Enabling this flag may also help with library dependency errors as linking libcurl at compile-time may instruct the linker to hard depend on a specific version of libcurl. It's also useful if you want to limit the amount of JUCE dependencies and you are not using WebInputStream or the URL classes.

## JUCE_CATCH_UNHANDLED_EXCEPTIONS

#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 0

Config: JUCE_CATCH_UNHANDLED_EXCEPTIONS If enabled, this will add some exception-catching code to forward unhandled exceptions to your JUCEApplicationBase::unhandledException() callback.

## JUCE_ALLOW_STATIC_NULL_VARIABLES

#define JUCE_ALLOW_STATIC_NULL_VARIABLES 0

Config: JUCE_ALLOW_STATIC_NULL_VARIABLES If disabled, this will turn off dangerous static globals like String::empty, var::null, etc which can cause nasty order-of-initialisation problems if they are referenced during static constructor code.

## JUCE_STRICT_REFCOUNTEDPOINTER

#define JUCE_STRICT_REFCOUNTEDPOINTER 0

Config: JUCE_STRICT_REFCOUNTEDPOINTER If enabled, this will make the ReferenceCountedObjectPtr class stricter about allowing itself to be cast directly to a raw pointer.

By default this is disabled, for compatibility with old code, but if possible, you should always enable it to improve code safety!

## JUCE_STRING_UTF_TYPE

#define JUCE_STRING_UTF_TYPE 8

Config: JUCE_ENABLE_ALLOCATION_HOOKS If enabled, this will add global allocation functions with built-in assertions, which may help when debugging allocations in unit tests.

### Purchase

Get JUCE

### Discover

What's New in JUCE Features

### Learn

Documentaion Tutorials Made with JUCE Resources

### Support

JUCE Forum Newsletter Archive

### About

Contact Us JUCE Legal JUCE Licensing FAQ

### Events

Audio Developer Conference
© Raw Material Software Limited