Skip to content

Commit cdc1429

Browse files
committed
added option to include own config file
1 parent 83a92f9 commit cdc1429

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

code/ulab.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#ifndef __ULAB__
1313
#define __ULAB__
1414

15+
16+
1517
// The pre-processor constants in this file determine how ulab behaves:
1618
//
1719
// - how many dimensions ulab can handle
@@ -23,6 +25,13 @@
2325
// A considerable amount of flash space can be saved by removing (setting
2426
// the corresponding constants to 0) the unnecessary functions and features.
2527

28+
// Values defined here can be overridden by your own config file as
29+
// make -DULAB_CONFIG_FILE="my_ulab_config.h"
30+
#if defined(ULAB_CONFIG_FILE)
31+
#include ULAB_CONFIG_FILE
32+
#endif
33+
34+
2635
// Determines, whether scipy is defined in ulab. The sub-modules and functions
2736
// of scipy have to be defined separately
2837
#ifndef ULAB_HAS_SCIPY

0 commit comments

Comments
 (0)