You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
446 B

#ifndef _TODO_H
#define _TODO_H
#ifdef __cplusplus
#define EX_C extern "C"
#include <cstdio>
#define restrict __restrict__
[[noreturn]]
#else
#define EX_C
#include <stdio.h>
__attribute__((noreturn))
#endif
inline static void _dev__unimplemented(const char* msg)
{
fputs("unimplemented", stderr);
if(msg) fputs(msg, stderr);
fputc('\n', stderr);
abort();
}
#define TODO(msg) _dev__unimplemented(": TODO: " msg)
#endif /* _TODO_H */