My Project
Loading...
Searching...
No Matches
mod_lib.h
Go to the documentation of this file.
1#ifndef MOD_LIB_H
2#define MOD_LIB_H
3
4#define SI_MOD_INIT0(name) name##_mod_init
5
6#ifdef STATIC_VERSION
7# define SI_MOD_INIT(name) SI_MOD_INIT0(name)
8#elif defined(DYNAMIC_VERSION)
9# define SI_MOD_INIT(name) mod_init
10#endif
11
12// Note that STATIC_VERSION and DYNAMIC_VERSION should not be defined in the following config header mod2.h!
13#include "kernel/mod2.h" /* for SI_BUILTINMODULES_ADD */
14
15/// Data for @c type_of_LIB to determine built-in modules,
16/// use @c add(name) to add built-in library to macro
17#define SI_FOREACH_BUILTIN(add) SI_BUILTINMODULES_ADD(add)
18
19#include "polys/mod_raw.h" /* for lib_types */
20lib_types type_of_LIB(const char *newlib, char *fullname);
21
22#endif
23
24/*
25#if HAVE_GFANLIB
26#define SI_BUILTIN_GFANLIB(add) add(gfanlib)
27#endif
28#ifdef HAVE_MATHICGB
29# define SI_BUILTIN_MATHIC(add) add(singmathic)
30#endif
31#ifdef EMBED_PYTHON
32//TODO: the line above means that syzextra should be staticly embedded IFF pyobjects do so :(((((
33#define SI_BUILTIN_PYOBJECT(add) add(pyobject) add(syzextra) SI_BUILTIN_GFANLIB(add) SI_BUILTIN_MATHIC(add)
34#endif
35*/
lib_types type_of_LIB(const char *newlib, char *fullname)
Definition: mod_lib.cc:27
lib_types
Definition: mod_raw.h:16