Hey i've replied with another patch :) On Tue, 5 Mar 2024 at 10:42, Kinsey Moore <kinsey.mo...@oarcorp.com> wrote:
> Zack, > It looks like there's been a little confusion here. Sebastian was > requesting that you condense the pair of #ifs into a single #if with && and > the defined check still coming first. It is mostly trivial in this > instance, but virtually every other example in the related files is of a > multi-conditional #if versus nested #ifs where possible. Technically, I > think what you have is fine as the RTEMS coding conventions don't directly > express a preference on split #ifs versus compound #ifs but it doesn't > match the style of the surrounding code. > > Kinsey > > On Mon, Mar 4, 2024 at 7:39 PM zack leung <zakthertems...@gmail.com> > wrote: > >> ping >> >> >> On Tue, 27 Feb 2024 at 21:33, zack leung <zakthertems...@gmail.com> >> wrote: >> >>> >>> joel said: >>> +#if CONFIGURE_TICKS_PER_TIMESLICE <= 0 && >>> > defined(CONFIGURE_TICKS_PER_TIMESLICE) >>> > + #error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than >>> zero" >>> > +#endif >>> > + >>> > >>> > >>> > This is modifying the right file but I think it is safer to check that >>> > it is defined >>> > before checking its value. >>> >>> Yes, the defined() check should be first. - sebestian >>> >>> You said this in relation to joel's comment in my previous thread. You >>> can check in either one. The previous one used the "and" statement. >>> >>> Zack >>> >>> On Tue, 27 Feb 2024 at 02:08, Sebastian Huber < >>> sebastian.hu...@embedded-brains.de> wrote: >>> >>>> On 19.02.24 03:13, zakthertems...@gmail.com wrote: >>>> > +#if defined(CONFIGURE_TICKS_PER_TIMESLICE) >>>> > + #if CONFIGURE_TICKS_PER_TIMESLICE <= 0 >>>> > + #error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than zero" >>>> > + #endif >>>> > +#endif >>>> >>>> This should be >>>> >>>> #if defined(CONFIGURE_TICKS_PER_TIMESLICE) && >>>> CONFIGURE_TICKS_PER_TIMESLICE <= 0 >>>> >>>> from my point of view. Just check the style of the related header files >>>> for a reference. >>>> >>>> -- >>>> embedded brains GmbH & Co. KG >>>> Herr Sebastian HUBER >>>> Dornierstr. 4 >>>> 82178 Puchheim >>>> Germany >>>> email: sebastian.hu...@embedded-brains.de >>>> phone: +49-89-18 94 741 - 16 >>>> fax: +49-89-18 94 741 - 08 >>>> >>>> Registergericht: Amtsgericht München >>>> Registernummer: HRB 157899 >>>> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler >>>> Unsere Datenschutzerklärung finden Sie hier: >>>> https://embedded-brains.de/datenschutzerklaerung/ >>>> >>> _______________________________________________ >> devel mailing list >> devel@rtems.org >> http://lists.rtems.org/mailman/listinfo/devel > >
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel