Files
quip/include/common/trace.h
2026-03-21 15:22:40 -04:00

22 lines
474 B
C

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