core: error: clean up includes and formatting

This commit is contained in:
2025-10-29 14:32:19 +00:00
parent 2ee2f8c115
commit 144c3a4c68
3 changed files with 3 additions and 2 deletions

View File

@@ -725,7 +725,7 @@ static const struct b_error_msg builtin_msg[] = {
B_ERROR_MSG_TEMPLATE( B_ERROR_MSG_TEMPLATE(
B_MSG_CLASS_SPECIFIES_UNKNOWN_INTERFACE, B_MSG_CLASS_SPECIFIES_UNKNOWN_INTERFACE,
"Class @[class_name] specifies an implementation for interface " "Class @[class_name] specifies an implementation for interface "
"@[interface_name] that it does not extend or inherit", "@[interface_name] that it does not extend or inherit",
B_ERROR_TEMPLATE_PARAM( B_ERROR_TEMPLATE_PARAM(
"class_name", B_ERROR_TEMPLATE_PARAM_STRING, "%s"), "class_name", B_ERROR_TEMPLATE_PARAM_STRING, "%s"),
B_ERROR_TEMPLATE_PARAM( B_ERROR_TEMPLATE_PARAM(

View File

@@ -2,6 +2,7 @@
#define _BLUELIB_ERROR_H_ #define _BLUELIB_ERROR_H_
#include <blue/core/error.h> #include <blue/core/error.h>
#include <blue/core/queue.h>
struct b_error_stack_frame { struct b_error_stack_frame {
b_queue_entry f_entry; b_queue_entry f_entry;

View File

@@ -2,9 +2,9 @@
#define BLUE_CORE_ERROR_H_ #define BLUE_CORE_ERROR_H_
#include <blue/core/misc.h> #include <blue/core/misc.h>
#include <blue/core/queue.h>
#include <blue/core/status.h> #include <blue/core/status.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdbool.h>
#define B_ERROR_TEMPLATE_PARAMETER_MAX 4 #define B_ERROR_TEMPLATE_PARAMETER_MAX 4
#define B_ERROR_MSG_ID_INVALID ((unsigned long)-1) #define B_ERROR_MSG_ID_INVALID ((unsigned long)-1)