flisp/src/types.h
2025-03-06 22:13:18 +01:00

31 lines
552 B
C
Executable file

#include <stdint.h>
#pragma once
typedef int8_t i8;
typedef uint8_t u8;
typedef int16_t i16;
typedef uint16_t u16;
typedef int32_t i32;
typedef uint32_t u32;
typedef int64_t i64;
typedef uint64_t u64;
typedef unsigned int uint;
#ifdef win
#define PACKED __attribute__((gcc_struct)) __attribute__((__packed__))
#else
#define PACKED __attribute__((__packed__))
#endif
enum ValTypes {
T_null = 0,
T_int = 1,
T_fix = 2,
T_float = 3,
T_str = 4,
T_fn = 5,
T_any = 6 //Used internally for functions taking any type
};