Blame build.h

Packit 67cb25
/* Compile subsequent inline functions as static functions */
Packit 67cb25
Packit 67cb25
#ifdef __GSL_BUILD_H__
Packit 67cb25
#error build.h must not be included multiple times
Packit 67cb25
#endif
Packit 67cb25
Packit 67cb25
#define __GSL_BUILD_H__
Packit 67cb25
Packit 67cb25
#ifdef COMPILE_INLINE_STATIC
Packit 67cb25
#ifndef HIDE_INLINE_STATIC  /* skip if inline functions are hidden */
Packit 67cb25
Packit 67cb25
#undef __GSL_INLINE_H__
Packit 67cb25
#define __GSL_INLINE_H__  /* first, ignore the gsl_inline.h header file */
Packit 67cb25
Packit 67cb25
#undef INLINE_DECL
Packit 67cb25
#define INLINE_DECL       /* disable inline in declarations */
Packit 67cb25
Packit 67cb25
#undef INLINE_FUN
Packit 67cb25
#define INLINE_FUN        /* disable inline in definitions */
Packit 67cb25
Packit 67cb25
#ifndef HAVE_INLINE       /* enable compilation of definitions in .h files */
Packit 67cb25
#define HAVE_INLINE
Packit 67cb25
#endif     
Packit 67cb25
Packit 67cb25
/* Compile range checking code for inline functions used in the library */
Packit 67cb25
#undef GSL_RANGE_CHECK
Packit 67cb25
#define GSL_RANGE_CHECK 1
Packit 67cb25
Packit 67cb25
/* Use the global variable gsl_check_range to enable/disable range checking at
Packit 67cb25
   runtime */
Packit 67cb25
#undef GSL_RANGE_COND
Packit 67cb25
#define GSL_RANGE_COND(x) (gsl_check_range && (x))
Packit 67cb25
Packit 67cb25
#endif
Packit 67cb25
#else 
Packit 67cb25
#error must be called with COMPILE_INLINE_STATIC
Packit 67cb25
#endif