On Fri Nov 02 07:56:44 2007, particle wrote: > as per PDD07 (r22655,) c macro args *must* be wrapped in parens inside > macro bodies, to allow expressions passed as macro parameters. > > for example, i expect: > #define CLASS_has_alien_parents_TEST(o) > CLASS_flag_TEST(has_alien_parents, (o)) > instead of > #define CLASS_has_alien_parents_TEST(o) > CLASS_flag_TEST(has_alien_parents, o) > > this entails conversion of all current macros to meet this criterion, > and a test to ensure compliance. > ~jerry
After a few false starts, we now have t/codingstd/c_macro_args.t which is currently reporting 502 macro/arg combinations where the parens are not used. To close out this ticket, this test should pass, and be added to the list of codingstd tests in lib/Parrot/Harness/DefaultTests.pm