source: git/Singular/mod_lib.h @ e2202ee

spielwiese
Last change on this file since e2202ee was e2202ee, checked in by Hans Schoenemann <hannes@…>, 10 years ago
fix: compiler warnings (64bit/const char*)
  • Property mode set to 100644
File size: 852 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#ifdef EMBED_PYTHON
12#define SI_BUILTIN_PYOBJECT(add) add(pyobject) add(syzextra)
13//TODO: the line above means that syzextra should be staticly embedded IFF pyobjects do so :(
14#else
15#define SI_BUILTIN_PYOBJECT(add)
16#endif
17
18#ifdef HAVE_MATHICGB
19# define SI_BUILTIN_MATHIC(add) add(singmathic)
20#else
21# define SI_BUILTIN_MATHIC(add)
22#endif
23
24/// Data for @c type_of_LIB to determine built-in modules,
25/// use @c add(name) to add built-in library to macro
26#define SI_FOREACH_BUILTIN(add)\
27    add(staticdemo)\
28    SI_BUILTIN_MATHIC(add)\
29    SI_BUILTIN_PYOBJECT(add)
30
31#define SI_MOD_INIT(name) name##_mod_init
32
33#endif
34
Note: See TracBrowser for help on using the repository browser.