summaryrefslogtreecommitdiff
path: root/compiler/debug.c
blob: d14bca642d2074cd8b6193e19e66c14202d3ca0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Logging utilities.
 * Copyright (c) 2023-2024, Quinn Stephens and the OSMORA team.
 * Provided under the BSD 3-Clause license.
 */

#include <stdarg.h>
#include <stdio.h>
#include "debug.h"

void
__debug(const char *fmt, ...)
{
    va_list ap;

    printf("\033[90mdebug:\033[0m ");
    va_start(ap, fmt);
    vprintf(fmt, ap);
    va_end(ap);
}