flisp/src/types.h
attilavs2 5a99cc1d06 WIP
2025-03-12 22:25:34 +01:00

33 lines
551 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
#define NOPOS __attribute__((designated_init))
enum ValTypes {
T_null = 0,
T_int = 1,
T_fix = 2,
T_float = 3,
T_str = 4,
T_fn = 5,
T_any = 6
};