1 module osqp_configure;
2 
3 
4 /* DEBUG */
5 //#mesondefine DEBUG
6 
7 /* Operating system */
8 //#mesondefine IS_LINUX
9 //#mesondefine IS_MAC
10 //#mesondefine IS_WINDOWS
11 
12 /* EMBEDDED */
13 /*
14 #ifdef USE_EMBEDDED
15 #define EMBEDDED (False)
16 #else
17 #undef EMBEDDED
18 #endif*/
19 /* PRINTING */
20 //#mesondefine PRINTING
21 
22 /* PROFILING */
23 //#mesondefine PROFILING
24 
25 /* CTRLC */
26 //#mesondefine CTRLC
27 
28 /* DFLOAT */
29 //#mesondefine DFLOAT
30 
31 /* DLONG */
32 //#mesondefine DLONG
33 
34 /* ENABLE_MKL_PARDISO */
35 //#mesondefine ENABLE_MKL_PARDISO
36 
37 
38 /* MEMORY MANAGEMENT */
39 //#mesondefine OSQP_CUSTOM_MEMORY
40 
41 version(OSQP_CUSTOM_MEMORY)
42 {
43     // todo : test it
44     //#include "custom_header.h"
45     import custom_header.h;
46 }
47 else {
48 /* If no custom memory allocator defined, use
49  * standard linux functions. Custom memory allocator definitions
50  * appear in the osqp_configure.h generated file. */
51     import core.stdc.stdlib;
52     alias c_malloc = malloc;
53     alias c_calloc = calloc;
54     alias c_realloc = realloc;
55     alias c_free = free;
56 }