2024-10-24 19:24:54 +01:00
|
|
|
#ifndef _BLUELIB_NUMBER_H_
|
|
|
|
|
#define _BLUELIB_NUMBER_H_
|
|
|
|
|
|
|
|
|
|
#include "object.h"
|
|
|
|
|
|
2025-08-09 19:57:42 +01:00
|
|
|
#include <blue/ds/number.h>
|
2024-10-24 19:24:54 +01:00
|
|
|
|
|
|
|
|
struct b_number {
|
2025-08-09 19:57:42 +01:00
|
|
|
struct b_dsref n_base;
|
2024-10-24 19:24:54 +01:00
|
|
|
b_number_type n_type;
|
|
|
|
|
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
|