summaryrefslogtreecommitdiffstats
path: root/bytecode/value.h
blob: 3fa78c4986a12b62ad2fe4f087eb8f17ef59850d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _VALUE_H_
#define _VALUE_H_

#include <stdbool.h>
#include <stdint.h>

typedef uint64_t value;

bool is_int(value);

int64_t to_int(value);

value from_int(int64_t);

bool is_pointer(value);

value *to_pointer(value);

value from_pointer(value *);

#endif