initial commit

This commit is contained in:
2026-02-12 00:45:31 -08:00
commit 5f168f370b
3024 changed files with 804889 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
/**
## Trace System
The trace system provides source location information for debugging.
### Components:
- `fl::TracePoint`: A tuple of (file, line, timestamp)
- `FL_TRACE`: Macro that captures current file, line, and timestamp
*/
#include "fl/tuple.h"
#include "fl/time.h"
#include "fl/stdint.h"
namespace fl {
/// @brief A structure to hold source trace information.
/// Contains the file name, line number, and the time at which the trace was captured.
using TracePoint = fl::tuple<const char*, int, fl::u32>;
} // namespace fl
/// @brief A macro to capture the current source file, line number, and time.
#define FL_TRACE fl::make_tuple(__FILE__, int(__LINE__), fl::time())