source: git/Singular/mod_lib.h @ 09830b6

fieker-DuValspielwiese
Last change on this file since 09830b6 was 9eb3048, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Minor improvements&fixes to builtins
  • Property mode set to 100644
File size: 571 bytes
Line 
1#ifndef MOD_LIB_H
2#define MOD_LIB_H
3
4// #include <config.h>         /* for EMBED_PYTHON */
5
6#include <polys/mod_raw.h>  /* for lib_types */
7
8lib_types type_of_LIB(char *newlib, char *fullname);
9
10#ifdef EMBED_PYTHON
11#define SI_BUILTIN_PYOBJECT(add) add(pyobject) add(syzextra)
12#else
13#define SI_BUILTIN_PYOBJECT(add)
14#endif
15
16/// Data for @c type_of_LIB to determine built-in modules,
17/// use @c add(name) to add built-in library to macro
18#define SI_FOREACH_BUILTIN(add)\
19    add(staticdemo)\
20    SI_BUILTIN_PYOBJECT(add)
21
22#define SI_MOD_INIT(name) name##_mod_init
23
24#endif
Note: See TracBrowser for help on using the repository browser.