Skip to content

Commit

Permalink
Add parentheses around macro expressions (#1256)
Browse files Browse the repository at this point in the history
Also note that names starting with `_[A-Z]` are reserved.
  • Loading branch information
WeiqunZhang authored Sep 26, 2023
1 parent dea363a commit 1b2025c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/ERF_Constants.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _CONSTANTS_H_
#define _CONSTANTS_H_
#ifndef ERF_CONSTANTS_H_
#define ERF_CONSTANTS_H_

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Source/IndexDefines.H
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#define PrimQt_comp (RhoQt_comp-1)
#define PrimQp_comp (RhoQp_comp-1)
#elif defined(ERF_USE_WARM_NO_PRECIP)
#define PrimQv_comp RhoQv_comp-1
#define PrimQc_comp RhoQc_comp-1
#define PrimQv_comp (RhoQv_comp-1)
#define PrimQc_comp (RhoQc_comp-1)
#endif
#define NUM_PRIM (NVAR-1)

Expand Down

0 comments on commit 1b2025c

Please sign in to comment.