source: git/Singular/mod_lib.h @ aee346d

spielwiese
Last change on this file since aee346d was a9c298, checked in by Hans Schoenemann <hannes@…>, 10 years ago
format stuff
  • Property mode set to 100644
File size: 984 bytes
Line 
1#ifndef MOD_LIB_H
2#define MOD_LIB_H
3
4// #include config.h
5#include <kernel/mod2.h> /* for EMBED_PYTHON, HAVE_MATHICGB */
6
7#include <polys/mod_raw.h>  /* for lib_types */
8
9lib_types type_of_LIB(const char *newlib, char *fullname);
10
11
12#if HAVE_GFANLIB
13#define SI_BUILTIN_GFANLIB(add) add(gfanlib)
14#else
15#define SI_BUILTIN_GFANLIB(add)
16#endif
17
18
19#ifdef EMBED_PYTHON
20#define SI_BUILTIN_PYOBJECT(add) add(pyobject)  add(syzextra)      SI_BUILTIN_GFANLIB(add)
21//TODO: the line above means that syzextra should be staticly embedded IFF pyobjects do so :(
22#else
23#define SI_BUILTIN_PYOBJECT(add)
24#endif
25
26#ifdef HAVE_MATHICGB
27# define SI_BUILTIN_MATHIC(add) add(singmathic)
28#else
29# define SI_BUILTIN_MATHIC(add)
30#endif
31
32/// Data for @c type_of_LIB to determine built-in modules,
33/// use @c add(name) to add built-in library to macro
34#define SI_FOREACH_BUILTIN(add)\
35    add(staticdemo)\
36    SI_BUILTIN_MATHIC(add)\
37    SI_BUILTIN_PYOBJECT(add)
38
39#define SI_MOD_INIT(name) name##_mod_init
40
41#endif
42
Note: See TracBrowser for help on using the repository browser.