cprj/test/registry.h

16 lines
264 B
C
Raw Permalink Normal View History

2024-10-02 20:01:45 -04:00
#ifndef REGISTRY_H
#define REGISTRY_H
#include <stdio.h>
// Test functions neither consume nor return anything.
typedef void (*Test)(void);
// Register a new test function.
void register_test(Test t);
// Run all registered tests.
void run_all_tests();
#endif