File: build.h

package info (click to toggle)
gsl-doc 2.3-1
  • links: PTS
  • area: non-free
  • in suites: buster
  • size: 27,748 kB
  • ctags: 15,177
  • sloc: ansic: 235,014; sh: 11,585; makefile: 925
file content (37 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* Compile subsequent inline functions as static functions */

#ifdef __GSL_BUILD_H__
#error build.h must not be included multiple times
#endif

#define __GSL_BUILD_H__

#ifdef COMPILE_INLINE_STATIC
#ifndef HIDE_INLINE_STATIC  /* skip if inline functions are hidden */

#undef __GSL_INLINE_H__
#define __GSL_INLINE_H__  /* first, ignore the gsl_inline.h header file */

#undef INLINE_DECL
#define INLINE_DECL       /* disable inline in declarations */

#undef INLINE_FUN
#define INLINE_FUN        /* disable inline in definitions */

#ifndef HAVE_INLINE       /* enable compilation of definitions in .h files */
#define HAVE_INLINE
#endif     

/* Compile range checking code for inline functions used in the library */
#undef GSL_RANGE_CHECK
#define GSL_RANGE_CHECK 1

/* Use the global variable gsl_check_range to enable/disable range checking at
   runtime */
#undef GSL_RANGE_COND
#define GSL_RANGE_COND(x) (gsl_check_range && (x))

#endif
#else 
#error must be called with COMPILE_INLINE_STATIC
#endif