-
Notifications
You must be signed in to change notification settings - Fork 2
/
bool.h
27 lines (24 loc) · 944 Bytes
/
bool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include "type.h"
#include "int.h"
value make$bool_(bool v=false);
value __eq__$bool_$bool_(value x, value y);
value __ne__$bool_$bool_(value x, value y);
value __lt__$bool_$bool_(value x, value y);
value __le__$bool_$bool_(value x, value y);
value __gt__$bool_$bool_(value x, value y);
value __ge__$bool_$bool_(value x, value y);
value __bool__$bool_(value self);
value __int__$bool_(value self);
value __float__$bool_(value self);
value __invert__$bool_(value x);
value __and__$bool_$bool_(value x, value y);
value __or__$bool_$bool_(value x, value y);
value __xor__$bool_$bool_(value x, value y);
value __add__$bool_$bool_(value x, value y);
value __sub__$bool_$bool_(value x, value y);
value __mul__$bool_$bool_(value x, value y);
value __truediv__$bool_$bool_(value x, value y);
value __mod__$bool_$bool_(value x, value y);
value __lshift__$bool_$bool_(value x, value y);
value __rshift__$bool_$bool_(value x, value y);