Files
bluelib/object/number.h

36 lines
561 B
C
Raw Normal View History

2024-10-24 19:24:54 +01:00
#ifndef _BLUELIB_NUMBER_H_
#define _BLUELIB_NUMBER_H_
#include "object.h"
#include <blue/object/number.h>
enum b_number_flags {
NUMBER_F_INF = 0x01u,
NUMBER_F_NAN = 0x02u,
};
2024-10-24 19:24:54 +01:00
struct b_number {
struct b_object n_base;
b_number_type n_type;
enum b_number_flags n_flags;
2024-10-24 19:24:54 +01:00
union {
int8_t v_int8;
int16_t v_int16;
int32_t v_int32;
int64_t v_int64;
float v_float32;
double v_float64;
char v_char;
short v_short;
int v_int;
long v_long;
long long v_longlong;
float v_float;
double v_double;
size_t v_size_t;
} n_value;
};
#endif