LMMS
Loading...
Searching...
No Matches
juce_core.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23
24/*******************************************************************************
25 The block below describes the properties of this module, and is read by
26 the Projucer to automatically generate project code that uses it.
27 For details about the syntax and how to create or use a module, see the
28 JUCE Module Format.md file.
29
30
31 BEGIN_JUCE_MODULE_DECLARATION
32
33 ID: juce_core
34 vendor: juce
35 version: 7.0.1
36 name: JUCE core classes
37 description: The essential set of basic JUCE classes, as required by all the other JUCE modules. Includes text, container, memory, threading and i/o functionality.
38 website: http://www.juce.com/juce
39 license: ISC
40 minimumCppStandard: 14
41
42 dependencies:
43 OSXFrameworks: Cocoa Foundation IOKit
44 iOSFrameworks: Foundation
45 linuxLibs: rt dl pthread
46 mingwLibs: uuid wsock32 wininet version ole32 ws2_32 oleaut32 imm32 comdlg32 shlwapi rpcrt4 winmm
47
48 END_JUCE_MODULE_DECLARATION
49
50*******************************************************************************/
51
52
53#pragma once
54#define JUCE_CORE_H_INCLUDED
55
56//==============================================================================
57#ifdef _MSC_VER
58 #pragma warning (push)
59 // Disable warnings for long class names, padding, and undefined preprocessor definitions.
60 #pragma warning (disable: 4251 4786 4668 4820)
61 #ifdef __INTEL_COMPILER
62 #pragma warning (disable: 1125)
63 #endif
64#endif
65
67
68//==============================================================================
74#ifndef JUCE_FORCE_DEBUG
75 //#define JUCE_FORCE_DEBUG 0
76#endif
77
78//==============================================================================
90#ifndef JUCE_LOG_ASSERTIONS
91 #if JUCE_ANDROID
92 #define JUCE_LOG_ASSERTIONS 1
93 #else
94 #define JUCE_LOG_ASSERTIONS 0
95 #endif
96#endif
97
98//==============================================================================
104#if JUCE_DEBUG && ! defined (JUCE_CHECK_MEMORY_LEAKS)
105 #define JUCE_CHECK_MEMORY_LEAKS 1
106#endif
107
108//==============================================================================
114#ifndef JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
115 #define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
116#endif
117
126#ifndef JUCE_INCLUDE_ZLIB_CODE
127 #define JUCE_INCLUDE_ZLIB_CODE 1
128#endif
129
130#ifndef JUCE_ZLIB_INCLUDE_PATH
131 #define JUCE_ZLIB_INCLUDE_PATH <zlib.h>
132#endif
133
140#ifndef JUCE_USE_CURL
141 #define JUCE_USE_CURL 1
142#endif
143
151#ifndef JUCE_LOAD_CURL_SYMBOLS_LAZILY
152 #define JUCE_LOAD_CURL_SYMBOLS_LAZILY 0
153#endif
154
159#ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
160 #define JUCE_CATCH_UNHANDLED_EXCEPTIONS 0
161#endif
162
168#ifndef JUCE_ALLOW_STATIC_NULL_VARIABLES
169 #define JUCE_ALLOW_STATIC_NULL_VARIABLES 0
170#endif
171
177#ifndef JUCE_STRICT_REFCOUNTEDPOINTER
178 #define JUCE_STRICT_REFCOUNTEDPOINTER 0
179#endif
180
185#ifndef JUCE_ENABLE_ALLOCATION_HOOKS
186 #define JUCE_ENABLE_ALLOCATION_HOOKS 0
187#endif
188
189#ifndef JUCE_STRING_UTF_TYPE
190 #define JUCE_STRING_UTF_TYPE 8
191#endif
192
193//==============================================================================
194//==============================================================================
195
196#if JUCE_CORE_INCLUDE_NATIVE_HEADERS
198#endif
199
200#if JUCE_WINDOWS
201 #undef small
202#endif
203
205
206namespace juce
207{
208 class StringRef;
209 class MemoryBlock;
210 class File;
211 class InputStream;
212 class OutputStream;
213 class DynamicObject;
214 class FileInputStream;
215 class FileOutputStream;
216 class XmlElement;
217
218 extern JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger() noexcept;
219 extern JUCE_API void JUCE_CALLTYPE logAssertion (const char* file, int line) noexcept;
220}
221
222#include "memory/juce_Memory.h"
225#include "memory/juce_Atomic.h"
227
229
230#include "text/juce_CharPointer_UTF8.h"
234
236
237#include "text/juce_String.h"
238#include "text/juce_StringRef.h"
239#include "logging/juce_Logger.h"
253#include "maths/juce_Range.h"
268#include "text/juce_NewLine.h"
269#include "text/juce_StringPool.h"
270#include "text/juce_Identifier.h"
275#include "text/juce_TextDiff.h"
277#include "text/juce_Base64.h"
278#include "misc/juce_Functional.h"
279#include "misc/juce_Result.h"
280#include "misc/juce_Uuid.h"
287#include "time/juce_Time.h"
295#include "files/juce_File.h"
307#include "javascript/juce_JSON.h"
311#include "maths/juce_Random.h"
318#include "threads/juce_Process.h"
321#include "threads/juce_Thread.h"
329#include "network/juce_URL.h"
332#include "xml/juce_XmlDocument.h"
333#include "xml/juce_XmlElement.h"
336#include "zip/juce_ZipFile.h"
341
342#if JUCE_CORE_INCLUDE_OBJC_HELPERS && (JUCE_MAC || JUCE_IOS)
344#endif
345
346#if JUCE_CORE_INCLUDE_COM_SMART_PTR && JUCE_WINDOWS
348#endif
349
350#if JUCE_CORE_INCLUDE_JNI_HELPERS && JUCE_ANDROID
351 #include <jni.h>
352 #include "native/juce_android_JNIHelpers.h"
353#endif
354
355#if JUCE_UNIT_TESTS
357#endif
358
359#ifndef DOXYGEN
360namespace juce
361{
362 /*
363 As the very long class names here try to explain, the purpose of this code is to cause
364 a linker error if not all of your compile units are consistent in the options that they
365 enable before including JUCE headers. The reason this is important is that if you have
366 two cpp files, and one includes the juce headers with debug enabled, and another does so
367 without that, then each will be generating code with different class layouts, and you'll
368 get subtle and hard-to-track-down memory corruption!
369 */
370 #if JUCE_DEBUG
371 struct JUCE_API this_will_fail_to_link_if_some_of_your_compile_units_are_built_in_debug_mode
372 { this_will_fail_to_link_if_some_of_your_compile_units_are_built_in_debug_mode() noexcept; };
373 static this_will_fail_to_link_if_some_of_your_compile_units_are_built_in_debug_mode compileUnitMismatchSentinel;
374 #else
378 #endif
379}
380#endif
381
383
384// In DLL builds, need to disable this warnings for other modules
385#if defined (JUCE_DLL_BUILD) || defined (JUCE_DLL)
386 JUCE_IGNORE_MSVC (4251)
387#endif
Definition File.h:50
Definition MemoryBlock.h:39
Definition XmlElement.h:145
#define JUCE_IGNORE_MSVC(warnings)
Definition juce_CompilerWarnings.h:196
#define JUCE_BEGIN_IGNORE_WARNINGS_MSVC(warnings)
Definition juce_CompilerWarnings.h:198
#define JUCE_END_IGNORE_WARNINGS_MSVC
Definition juce_CompilerWarnings.h:199
#define JUCE_CALLTYPE
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
JUCE_API void JUCE_CALLTYPE logAssertion(const char *file, int line) noexcept
static this_will_fail_to_link_if_some_of_your_compile_units_are_built_in_release_mode compileUnitMismatchSentinel
Definition juce_core.h:377
struct zdirent * file
Definition win32.c:1500