check.c (188B)
#include "check.h"
#include <stdio.h>
#include <stdlib.h>
void check(bool condition, const char* message)
{
if (!condition) return;
fprintf(stderr, "%s", message);
exit(1);
}
sicThe sic programming language, compiler and tools (WIP) | |
| Log | Files | Refs |
check.c (188B)
#include "check.h"
#include <stdio.h>
#include <stdlib.h>
void check(bool condition, const char* message)
{
if (!condition) return;
fprintf(stderr, "%s", message);
exit(1);
}