Skip to content

Commit 28fb76e

Browse files
authored
Merge pull request #740 from yumaikas/hotfix-new-style-math-bindings
Fix macro stringification for one-arg math functions
2 parents 2a7041e + b0f9739 commit 28fb76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ JANET_CORE_FN(janet_srand,
256256
}
257257

258258
#define JANET_DEFINE_MATHOP(name, fop, doc)\
259-
JANET_CORE_FN(janet_##name, "(math/##name x)", doc) {\
259+
JANET_CORE_FN(janet_##name, "(math/" #name " x)", doc) {\
260260
janet_fixarity(argc, 1); \
261261
double x = janet_getnumber(argv, 0); \
262262
return janet_wrap_number(fop(x)); \

0 commit comments

Comments
 (0)