LAL  7.5.0.1-08ee4f4
LALStringTest.c File Reference

Prototypes

static int sign (int s)
 
int main (void)
 

Go to the source code of this file.

Macros

#define STRCMPCHK(XLALCMP, XLALS1, XLALS2, CCMP, CS1, CS2)
 
#define STRNCMPCHK(N, XLALCMP, XLALS1, XLALS2, CCMP, CS1, CS2)
 

Macro Definition Documentation

◆ STRCMPCHK

#define STRCMPCHK (   XLALCMP,
  XLALS1,
  XLALS2,
  CCMP,
  CS1,
  CS2 
)
Value:
do { \
int xlalsign = sign(XLALCMP(XLALS1, XLALS2)); \
int csign = sign(CCMP(CS1, CS2)); \
XLAL_CHECK_MAIN( xlalsign == csign, XLAL_EFAILED, \
"Failed string comparison test: sign(%s('%s','%s')) = %i, sign(%s('%s','%s')) = %i\n", \
#XLALCMP, XLALS1, XLALS2, xlalsign, #CCMP, CS1, CS2, csign ); \
} while(0)
static int sign(int s)
Definition: LALStringTest.c:27
@ XLAL_EFAILED
Generic failure.
Definition: XLALError.h:418

Definition at line 33 of file LALStringTest.c.

◆ STRNCMPCHK

#define STRNCMPCHK (   N,
  XLALCMP,
  XLALS1,
  XLALS2,
  CCMP,
  CS1,
  CS2 
)
Value:
do { \
int xlalsign = sign(XLALCMP(XLALS1, XLALS2, N)); \
int csign = sign(CCMP(CS1, CS2, N)); \
XLAL_CHECK_MAIN( xlalsign == csign, XLAL_EFAILED, \
"Failed string comparison test: sign(%s('%s','%s',%zu)) = %i, sign(%s('%s','%s',%zu)) = %i\n", \
#XLALCMP, XLALS1, XLALS2, N, xlalsign, #CCMP, CS1, CS2, N, csign ); \
} while(0)

Definition at line 41 of file LALStringTest.c.

Function Documentation

◆ sign()

static int sign ( int  s)
inlinestatic

Definition at line 27 of file LALStringTest.c.

◆ main()

int main ( void  )

Definition at line 49 of file LALStringTest.c.