From b0f97393a3226a51a0d15137bdfcfa27dd97c112 Mon Sep 17 00:00:00 2001 From: Andrew Owen Date: Tue, 27 Jul 2021 21:40:25 -0600 Subject: [PATCH] Fix macro stringification for one-arg math functions --- src/core/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/math.c b/src/core/math.c index 0e7cc10f..10a9fbfc 100644 --- a/src/core/math.c +++ b/src/core/math.c @@ -256,7 +256,7 @@ JANET_CORE_FN(janet_srand, } #define JANET_DEFINE_MATHOP(name, fop, doc)\ -JANET_CORE_FN(janet_##name, "(math/##name x)", doc) {\ +JANET_CORE_FN(janet_##name, "(math/" #name " x)", doc) {\ janet_fixarity(argc, 1); \ double x = janet_getnumber(argv, 0); \ return janet_wrap_number(fop(x)); \