diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-04-04 21:58:48 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2004-04-04 21:58:48 +0000 |
commit | 3a809caeb7219de0efe71b891f5715088296d13a (patch) | |
tree | c13ee004df6a8a4a6ab3a57fe9284670d449a3ba /src/include/cctk.h | |
parent | 5a1be2ea19469429e3dfcff8c32b1ca9f3e1dfae (diff) |
Change ".eq. 1" to ".ne. 0" for CCTK_EQUALS, because this is what C
also does.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3645 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk.h')
-rw-r--r-- | src/include/cctk.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/cctk.h b/src/include/cctk.h index 800a20cc..8767e2d4 100644 --- a/src/include/cctk.h +++ b/src/include/cctk.h @@ -63,7 +63,10 @@ #define CCTK_CoordRegisterSystem(a,b,c) CCTKi_CoordRegisterSystem(a,b,CCTK_THORNSTRING,c) -#define CCTK_EQUALS(a,b) (CCTK_Equals(a,b) .eq. 1) +/* John Shalf says that the operator .ne. needs to be enclosed by + spaces, because ANSI C preprocessors otherwise interpret the + character sequence ".0" as preprocessor token */ +#define CCTK_EQUALS(a,b) (CCTK_Equals(a,b) .ne. 0) #define CCTK_PASS_FTOF CCTK_FARGUMENTS |