Carp/core/core.h
2018-02-27 15:09:13 +01:00

23 lines
302 B
C

#ifndef PRELUDE_H
#define PRELUDE_H
#include <assert.h>
#include <stdbool.h>
typedef char* string;
// Array
typedef struct {
size_t len;
void *data;
} Array;
bool not(bool b) {
return !b;
}
bool and(bool x, bool y) { return x && y; }
bool or(bool x, bool y) { return x || y; }
#endif