See, I was thinking that it should be treated like all other functions with no indention of the first pair of curly brackets. I didn't look for other multi-line macro functions to compare with though. I'll go with whatever is consistent with existing code in the repo.

- John


On 3/25/20 4:29 PM, Gregory Nutt wrote:

I also took a look at the coding standard guide to make sure I was in compliance, but I'm unsure of where I should put the 'do'

#define mpu_priv_stronglyordered(base, size) do \
{ \
  /* The configure the region */ \

== OR ==

#define mpu_user_flash(base, size) \
do { \
  /* The configure the region */ \

Tt basically should follow the same rules as other code.  Still no braces on the same line.  I would have done:

#define mpu_priv_stronglyordered(base, size) \
  do \
    { \
      /* The configure the region */ \


CONFIDENTIALITY NOTICE: This communication may contain private, confidential 
and privileged material for the sole use of the intended recipient. If you are 
not the intended recipient, please delete this e-mail and any attachments 
permanently.

Reply via email to