/* * Copyright (c) 2026, Mirocom Laboratories * Provided under the BSD-3 clause * * Abstract: * This header provides trace helpers. * Author: * Ian M. Moffett */ #ifndef COMMON_TRACE_H #define COMMON_TRACE_H 1 #include #include "common/state.h" #define trace_error(state, fmt, ...) \ printf("fatal: " fmt, ##__VA_ARGS__); \ printf("near line %zu\n", (state)->line_num); #endif /* !COMMON_TRACE_H */