mirror of
https://github.com/alexhopeoconnor/DFTE.git
synced 2026-10-03 22:21:59 +10:00
Release DFTE 1.0.1
This commit is contained in:
@@ -26,23 +26,13 @@
|
||||
#define DFTE_RAM_CHUNK_SIZE_DEFAULT 128
|
||||
#endif
|
||||
|
||||
// Use DeviceFramework config defaults at compile-time if available, otherwise use internal defaults
|
||||
#ifdef DEVICEFRAMEWORK_CONFIG_H
|
||||
// DeviceFramework is present - use config defaults
|
||||
// DeviceFrameworkConfig.h must be included before this file to access CONFIG_*_default macros
|
||||
#ifdef CONFIG_templateProgmemChunkSize_default
|
||||
#define DFTE_PROGMEM_CHUNK_SIZE CONFIG_templateProgmemChunkSize_default
|
||||
#else
|
||||
#define DFTE_PROGMEM_CHUNK_SIZE DFTE_PROGMEM_CHUNK_SIZE_DEFAULT
|
||||
#endif
|
||||
#ifdef CONFIG_templateRamChunkSize_default
|
||||
#define DFTE_RAM_CHUNK_SIZE CONFIG_templateRamChunkSize_default
|
||||
#else
|
||||
#define DFTE_RAM_CHUNK_SIZE DFTE_RAM_CHUNK_SIZE_DEFAULT
|
||||
#endif
|
||||
#else
|
||||
// Standalone usage - use internal defaults
|
||||
// Chunk settings are build-wide DFTE_* flags. They are not inferred from a
|
||||
// consumer header so library and consumer translation units remain consistent.
|
||||
#ifndef DFTE_PROGMEM_CHUNK_SIZE
|
||||
#define DFTE_PROGMEM_CHUNK_SIZE DFTE_PROGMEM_CHUNK_SIZE_DEFAULT
|
||||
#endif
|
||||
|
||||
#ifndef DFTE_RAM_CHUNK_SIZE
|
||||
#define DFTE_RAM_CHUNK_SIZE DFTE_RAM_CHUNK_SIZE_DEFAULT
|
||||
#endif
|
||||
|
||||
|
||||
@@ -20,27 +20,13 @@
|
||||
#define DFTE_PLACEHOLDER_NAME_SIZE_DEFAULT 24
|
||||
#endif
|
||||
|
||||
// Use DeviceFramework config defaults at compile-time if available, otherwise use internal defaults
|
||||
// Array sizes must be compile-time constants
|
||||
#ifdef DEVICEFRAMEWORK_CONFIG_H
|
||||
// DeviceFramework is present - use config defaults for array sizing
|
||||
// DeviceFrameworkConfig.h must be included before this file to access CONFIG_*_default macros
|
||||
#ifdef CONFIG_templateStackDepth_default
|
||||
#define DFTE_MAX_STACK_DEPTH CONFIG_templateStackDepth_default
|
||||
#else
|
||||
#define DFTE_MAX_STACK_DEPTH DFTE_MAX_STACK_DEPTH_DEFAULT
|
||||
#endif
|
||||
#ifdef CONFIG_templateBufferSize_default
|
||||
#define DFTE_BUFFER_SIZE CONFIG_templateBufferSize_default
|
||||
#else
|
||||
#define DFTE_BUFFER_SIZE DFTE_BUFFER_SIZE_DEFAULT
|
||||
#endif
|
||||
// DFTE_PLACEHOLDER_NAME_SIZE is already defined in DeviceFrameworkTemplateTypes.h
|
||||
#else
|
||||
// Standalone usage - use internal defaults
|
||||
// Layout-affecting settings must be supplied through build-wide DFTE_* flags.
|
||||
#ifndef DFTE_MAX_STACK_DEPTH
|
||||
#define DFTE_MAX_STACK_DEPTH DFTE_MAX_STACK_DEPTH_DEFAULT
|
||||
#endif
|
||||
|
||||
#ifndef DFTE_BUFFER_SIZE
|
||||
#define DFTE_BUFFER_SIZE DFTE_BUFFER_SIZE_DEFAULT
|
||||
// DFTE_PLACEHOLDER_NAME_SIZE is already defined in DeviceFrameworkTemplateTypes.h
|
||||
#endif
|
||||
|
||||
// Forward declaration
|
||||
|
||||
@@ -10,17 +10,8 @@
|
||||
#define DFTE_MAX_ITERATIONS_DEFAULT 50
|
||||
#endif
|
||||
|
||||
// Use DeviceFramework config defaults at compile-time if available, otherwise use internal defaults
|
||||
#ifdef DEVICEFRAMEWORK_CONFIG_H
|
||||
// DeviceFramework is present - use config defaults
|
||||
// DeviceFrameworkConfig.h must be included before this file to access CONFIG_*_default macros
|
||||
#ifdef CONFIG_templateMaxIterations_default
|
||||
#define DFTE_MAX_ITERATIONS CONFIG_templateMaxIterations_default
|
||||
#else
|
||||
#define DFTE_MAX_ITERATIONS DFTE_MAX_ITERATIONS_DEFAULT
|
||||
#endif
|
||||
#else
|
||||
// Standalone usage - use internal defaults
|
||||
// Renderer settings are build-wide DFTE_* flags.
|
||||
#ifndef DFTE_MAX_ITERATIONS
|
||||
#define DFTE_MAX_ITERATIONS DFTE_MAX_ITERATIONS_DEFAULT
|
||||
#endif
|
||||
|
||||
|
||||
@@ -9,18 +9,10 @@
|
||||
#define DFTE_PLACEHOLDER_NAME_SIZE_DEFAULT 24
|
||||
#endif
|
||||
|
||||
// Use DeviceFramework config defaults at compile-time if available, otherwise use internal defaults
|
||||
// Array sizes must be compile-time constants
|
||||
#ifdef DEVICEFRAMEWORK_CONFIG_H
|
||||
// DeviceFramework is present - use config defaults for array sizing
|
||||
// DeviceFrameworkConfig.h must be included before this file to access CONFIG_*_default macros
|
||||
#ifdef CONFIG_templatePlaceholderNameSize_default
|
||||
#define DFTE_PLACEHOLDER_NAME_SIZE CONFIG_templatePlaceholderNameSize_default
|
||||
#else
|
||||
#define DFTE_PLACEHOLDER_NAME_SIZE DFTE_PLACEHOLDER_NAME_SIZE_DEFAULT
|
||||
#endif
|
||||
#else
|
||||
// Standalone usage - use internal defaults
|
||||
// Layout-affecting settings must be passed as build-wide DFTE_* flags so every
|
||||
// translation unit sees the same object layout. DeviceFramework runtime config is
|
||||
// intentionally not used for fixed-size storage.
|
||||
#ifndef DFTE_PLACEHOLDER_NAME_SIZE
|
||||
#define DFTE_PLACEHOLDER_NAME_SIZE DFTE_PLACEHOLDER_NAME_SIZE_DEFAULT
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user