apply new formatting rules to the whole project

This commit is contained in:
2025-07-24 11:40:12 +02:00
parent cdf13b7529
commit 1d5df8df0a
12 changed files with 37 additions and 37 deletions

View File

@@ -3,12 +3,12 @@
#pragma once
#include <stdio.h>
char const *test_ctest;
const char *test_ctest;
size_t test_runs = 0;
// evaluates the test
// returns 1 upon error
static inline int assert_helper(int cond, char const *restrict fname, unsigned ln, char const *restrict fnname, char const *restrict expr) {
static inline int assert_helper(int cond, const char *restrict fname, unsigned ln, const char *restrict fnname, const char *restrict expr) {
test_runs++;
if (cond)
printf("[\033[32;1m OK \033[0m] %s %s -> %s:%u (%s)\n", test_ctest, fnname, fname, ln, expr);
@@ -22,7 +22,7 @@ static inline int assert_helper(int cond, char const *restrict fname, unsigned l
// contains the data for executing a single test
struct testdat {
char const *name; // test name
const char *name; // test name
int (*test)(void *); // test, returns 0 upon success, non-zero upon failure
void *args; // arguments to the test
};