[prev in list] [next in list] [prev in thread] [next in thread]
List: gmp-bugs
Subject: m4_error not working?
From: nisse () lysator ! liu ! se (Niels =?utf-8?Q?M=C3=B6ller?=)
Date: 2020-09-18 6:47:16
Message-ID: cpfy2l7oa2z.fsf () fukushima ! lysator ! liu ! se
[Download RAW message or body]
Hi, I was looking at the m4 macrology in mpn/asm-defs.m4 (to borrow some
of it to Nettle). But the error machinery is not working the way I
expect. E.g., m4_length is defined using m4_assert_onearg(). But if I
try using it with an incorrect number of arguments, I get no error:
$ echo 'm4_length(foo)' | m4 mpn/asm-defs.m4 -
3
$ echo 'm4_length(foo, bar)' | m4 mpn/asm-defs.m4 -
3
$ echo $?
0
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic