Skip to content

Commit 36cd305

Browse files
author
H. Peter Anvin
committed
preproc: add %abs(), modify %num(), refactor
Add the %abs() function, to produce the absolute value as an always-positive decimal constant. Change the order of the arguments for %num(). Refactor the handling of optional arguments, to reduce the amount of redundant code. This is currently only used for builtin functions, but might be extended in the future. Signed-off-by: H. Peter Anvin <[email protected]>
1 parent e7dd0e8 commit 36cd305

File tree

4 files changed

+202
-81
lines changed

4 files changed

+202
-81
lines changed

0 commit comments

Comments
 (0)