Loading...
Searching...
No Matches
Go to the documentation of this file.
19#ifndef MCRL2_UTILITIES_DETAIL_MEMORY_UTILITY_H
20#define MCRL2_UTILITIES_DETAIL_MEMORY_UTILITY_H
29#ifdef MCRL2_PLATFORM_WINDOWS
31 #define MCRL2_SPECIFIC_STACK_ALLOCATOR(TYPE, SIZE) reinterpret_cast<TYPE*>(_alloca((SIZE)*sizeof(TYPE)))
32#elif (MCRL2_PLATFORM_LINUX || MCRL2_PLATFORM_MAC)
34 #define MCRL2_SPECIFIC_STACK_ALLOCATOR(TYPE, SIZE) reinterpret_cast<TYPE*>(alloca((SIZE)*sizeof(TYPE)))
35#elif MCRL2_PLATFORM_FREEBSD
37 #define MCRL2_SPECIFIC_STACK_ALLOCATOR(TYPE, SIZE) reinterpret_cast<TYPE*>(alloca((SIZE)*sizeof(TYPE)))
39 static_assert(
false,
"MCRL2_SPECIFICATION_STACK_ALLOCATOR has not yet been defined for your platform.");