~ubuntu-branches/debian/sid/gsl/sid

« back to all changes in this revision

Viewing changes to build.h

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-12-16 06:17:55 UTC
  • mfrom: (1.3.2 upstream) (3.1.15 jaunty)
  • Revision ID: james.westby@ubuntu.com-20081216061755-9la7p0qwrhopk8pl
Tags: 1.12+dfsg-1
* New upstream version released today

* doc/*: As before, removed the 'non-free' documentation to create a 
  source package that complies with Debian's interpretation of what is free. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Compile subsequent inline functions as static functions */
 
2
 
 
3
#ifdef __GSL_BUILD_H__
 
4
#error build.h must not be included multiple times
 
5
#endif
 
6
 
 
7
#define __GSL_BUILD_H__
 
8
 
 
9
#ifdef COMPILE_INLINE_STATIC
 
10
#ifndef HIDE_INLINE_STATIC  /* skip if inline functions are hidden */
 
11
 
 
12
#undef __GSL_INLINE_H__
 
13
#define __GSL_INLINE_H__  /* first, ignore the gsl_inline.h header file */
 
14
 
 
15
#undef INLINE_DECL
 
16
#define INLINE_DECL       /* disable inline in declarations */
 
17
 
 
18
#undef INLINE_FUN
 
19
#define INLINE_FUN        /* disable inline in definitions */
 
20
 
 
21
#ifndef HAVE_INLINE       /* enable compilation of definitions in .h files */
 
22
#define HAVE_INLINE
 
23
#endif     
 
24
 
 
25
/* Compile range checking code for inline functions used in the library */
 
26
#undef GSL_RANGE_CHECK
 
27
#define GSL_RANGE_CHECK 1
 
28
 
 
29
/* Use the global variable gsl_check_range to enable/disable range checking at
 
30
   runtime */
 
31
#undef GSL_RANGE_COND
 
32
#define GSL_RANGE_COND(x) (gsl_check_range && (x))
 
33
 
 
34
#endif
 
35
#else 
 
36
#error must be called with COMPILE_INLINE_STATIC
 
37
#endif