diff options
Diffstat (limited to 'bytecode/value.h')
| -rw-r--r-- | bytecode/value.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bytecode/value.h b/bytecode/value.h new file mode 100644 index 0000000..3fa78c4 --- /dev/null +++ b/bytecode/value.h @@ -0,0 +1,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 |
