aboutsummaryrefslogtreecommitdiff
path: root/stdlib/nums.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-29 12:55:14 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-29 12:55:14 -0500
commit4b5e4cd1f21582f5e5fa682ab4e4bff252963468 (patch)
treee8fecb01f444c1d392c09255adba5cf6b312b326 /stdlib/nums.h
parent0b0e0a0a1d41e9574de8dc17c688a4894c5e7f92 (diff)
Change how types handle metamethods
Diffstat (limited to 'stdlib/nums.h')
-rw-r--r--stdlib/nums.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/stdlib/nums.h b/stdlib/nums.h
index dc7f9ff8..f000ca8b 100644
--- a/stdlib/nums.h
+++ b/stdlib/nums.h
@@ -16,9 +16,9 @@
#define N32(n) ((float)n)
#define N64(n) ((double)n)
-Text_t Num$as_text(const double *f, bool colorize, const TypeInfo_t *type);
-PUREFUNC int32_t Num$compare(const double *x, const double *y, const TypeInfo_t *type);
-PUREFUNC bool Num$equal(const double *x, const double *y, const TypeInfo_t *type);
+Text_t Num$as_text(const void *f, bool colorize, const TypeInfo_t *type);
+PUREFUNC int32_t Num$compare(const void *x, const void *y, const TypeInfo_t *type);
+PUREFUNC bool Num$equal(const void *x, const void *y, const TypeInfo_t *type);
CONSTFUNC bool Num$near(double a, double b, double ratio, double absolute);
Text_t Num$format(double f, Int_t precision);
Text_t Num$scientific(double f, Int_t precision);
@@ -34,9 +34,9 @@ MACROLIKE CONSTFUNC double Num$clamped(double x, double low, double high) {
}
extern const TypeInfo_t Num$info;
-Text_t Num32$as_text(const float *f, bool colorize, const TypeInfo_t *type);
-PUREFUNC int32_t Num32$compare(const float *x, const float *y, const TypeInfo_t *type);
-PUREFUNC bool Num32$equal(const float *x, const float *y, const TypeInfo_t *type);
+Text_t Num32$as_text(const void *f, bool colorize, const TypeInfo_t *type);
+PUREFUNC int32_t Num32$compare(const void *x, const void *y, const TypeInfo_t *type);
+PUREFUNC bool Num32$equal(const void *x, const void *y, const TypeInfo_t *type);
CONSTFUNC bool Num32$near(float a, float b, float ratio, float absolute);
Text_t Num32$format(float f, Int_t precision);
Text_t Num32$scientific(float f, Int_t precision);