30 static_assert (
sizeof (
pointer_sized_int) ==
sizeof (
void*),
"Basic sanity test failed: please report!");
31 static_assert (
sizeof (
int8) == 1,
"Basic sanity test failed: please report!");
32 static_assert (
sizeof (
uint8) == 1,
"Basic sanity test failed: please report!");
33 static_assert (
sizeof (
int16) == 2,
"Basic sanity test failed: please report!");
34 static_assert (
sizeof (
uint16) == 2,
"Basic sanity test failed: please report!");
35 static_assert (
sizeof (
int32) == 4,
"Basic sanity test failed: please report!");
36 static_assert (
sizeof (
uint32) == 4,
"Basic sanity test failed: please report!");
37 static_assert (
sizeof (
int64) == 8,
"Basic sanity test failed: please report!");
38 static_assert (
sizeof (
uint64) == 8,
"Basic sanity test failed: please report!");
40 return "JUCE v" JUCE_STRINGIFY (JUCE_MAJOR_VERSION)
41 "." JUCE_STRINGIFY (JUCE_MINOR_VERSION)
42 "." JUCE_STRINGIFY (JUCE_BUILDNUMBER);
45#if JUCE_ANDROID && ! defined (JUCE_DISABLE_JUCE_VERSION_PRINTING)
46 #define JUCE_DISABLE_JUCE_VERSION_PRINTING 1
49#if JUCE_DEBUG && ! JUCE_DISABLE_JUCE_VERSION_PRINTING
58 static JuceVersionPrinter juceVersionPrinter;
71String getLegacyUniqueDeviceID();
95 arr.add (getLegacyUniqueDeviceID());
117 if (hasBitValueSet (flags,
provider.flag))
127 CPUInformation()
noexcept { initialise(); }
129 void initialise() noexcept;
131 int numLogicalCPUs = 0, numPhysicalCPUs = 0;
133 bool hasMMX = false, hasSSE = false, hasSSE2 = false, hasSSE3 = false,
134 has3DNow = false, hasFMA3 = false, hasFMA4 = false, hasSSSE3 = false,
135 hasSSE41 = false, hasSSE42 = false, hasAVX = false, hasAVX2 = false,
136 hasAVX512F = false, hasAVX512BW = false, hasAVX512CD = false,
137 hasAVX512DQ = false, hasAVX512ER = false, hasAVX512IFMA = false,
138 hasAVX512PF = false, hasAVX512VBMI = false, hasAVX512VL = false,
139 hasAVX512VPOPCNTDQ = false,
143static const CPUInformation& getCPUInformation() noexcept
145 static CPUInformation info;
181 #if JUCE_ANDROID || JUCE_MINGW || JUCE_WASM
193 symbol->MaxNameLen = 255;
196 for (
int i = 0; i <
frames; ++i)
208 if (::SymGetModuleInfo64 (process, symbol->ModBase, &
moduleInfo))
237 globalCrashHandler (
ep);
241static void handleCrash (
int signum)
243 globalCrashHandler ((
void*) (pointer_sized_int) signum);
244 ::kill (getpid(), SIGKILL);
247int juce_siginterrupt (
int sig,
int flag);
260 for (
int i = 0; i < numElementsInArray (
signals); ++i)
262 ::signal (
signals[i], handleCrash);
263 juce_siginterrupt (
signals[i], 1);
272 #if JUCE_MAC || JUCE_IOS
278 bundle =
bundle.getParentDirectory().getParentDirectory();
282 return bundle.getFileExtension() ==
".appex";
301 void runTest()
override
303 beginTest (
"getUniqueDeviceID returns usable data.");
305 expect (SystemStats::getUniqueDeviceID().isNotEmpty());
310static UniqueHardwareIDTest uniqueHardwareIDTest;
static File JUCE_CALLTYPE getSpecialLocation(const SpecialLocationType type)
uint64 getFileIdentifier() const
static Array< MACAddress > getAllAddresses()
static String toHexString(IntegerType number)
static bool hasAVX512CD() noexcept
static String getStackBacktrace()
static bool hasMMX() noexcept
static void setApplicationCrashHandler(CrashHandlerFunction)
static int getNumPhysicalCpus() noexcept
static bool hasAVX512ER() noexcept
static bool has3DNow() noexcept
static bool hasAVX2() noexcept
static bool hasAVX512VPOPCNTDQ() noexcept
static bool hasSSE() noexcept
static bool hasAVX512DQ() noexcept
static bool isRunningInAppExtensionSandbox() noexcept
static bool hasNeon() noexcept
static bool hasAVX512F() noexcept
static bool hasSSE3() noexcept
static bool hasSSE2() noexcept
static bool hasAVX() noexcept
void(*)(void *) CrashHandlerFunction
static bool hasAVX512VBMI() noexcept
static String getUniqueDeviceID()
@ legacyUniqueId
Only implemented on Windows. A hash of the full smbios table, may be unstable on certain machines.
@ uniqueId
The most stable kind of machine identifier. A good default to use.
@ fileSystemId
The filesystem id of the user's home directory (or system directory on Windows).
@ macAddresses
All Mac addresses of the machine.
static bool hasSSSE3() noexcept
static bool hasAVX512VL() noexcept
static bool hasAVX512PF() noexcept
static bool hasSSE41() noexcept
static StringArray getDeviceIdentifiers()
static bool hasFMA4() noexcept
static String getJUCEVersion()
static bool hasSSE42() noexcept
static StringArray getMachineIdentifiers(MachineIdFlags flags)
static bool hasFMA3() noexcept
static bool hasAVX512IFMA() noexcept
static bool hasAVX512BW() noexcept
static int getNumCpus() noexcept