20#include "lib/fit/function.h"
31#ifndef PW_FUNCTION_INLINE_CALLABLE_SIZE
32#define PW_FUNCTION_INLINE_CALLABLE_SIZE (sizeof(void*))
35static_assert(PW_FUNCTION_INLINE_CALLABLE_SIZE > 0 &&
36 PW_FUNCTION_INLINE_CALLABLE_SIZE %
alignof(
void*) == 0);
48#ifndef PW_FUNCTION_ENABLE_DYNAMIC_ALLOCATION
49#define PW_FUNCTION_ENABLE_DYNAMIC_ALLOCATION 0
58#ifndef PW_FUNCTION_DEFAULT_ALLOCATOR_TYPE
59#define PW_FUNCTION_DEFAULT_ALLOCATOR_TYPE fit::default_callable_allocator
64namespace pw::function_internal::config {
66inline constexpr size_t kInlineCallableSize = PW_FUNCTION_INLINE_CALLABLE_SIZE;
67inline constexpr bool kEnableDynamicAllocation =
68 PW_FUNCTION_ENABLE_DYNAMIC_ALLOCATION;