mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
* **New Features** * Centralized module management with global symbol resolution * Level-aware logging with colored prefixes and millisecond timestamps * **Breaking Changes** * ModuleParent hierarchy and getModuleParent() removed * Logging API and adapter model replaced; LogLevel-driven log_generic signature changed * **Improvements** * Unified, simplified module registration across build targets * Tests updated to reflect new module lifecycle and global symbol resolution
21 lines
447 B
C
21 lines
447 B
C
#include <stdlib.h>
|
|
#if defined(__GLIBC__)
|
|
#include <assert.h>
|
|
#endif
|
|
#include <tactility/freertos/task.h>
|
|
#include <tactility/log.h>
|
|
|
|
#define TAG "freertos"
|
|
|
|
/**
|
|
* Assert implementation as defined in the FreeRTOSConfig.h
|
|
*/
|
|
void vAssertCalled(unsigned long line, const char* const file) {
|
|
LOG_E("Assert triggered at {}:{}", file, line);
|
|
#if defined(__GLIBC__)
|
|
__assert_fail("assert failed", file, line, "");
|
|
#else
|
|
abort();
|
|
#endif
|
|
}
|