-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlambda_lib.hpp
More file actions
37 lines (29 loc) · 1023 Bytes
/
lambda_lib.hpp
File metadata and controls
37 lines (29 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
// Some functions return default value when failed
// meaning: 0, nullptr, etc.
// No exeptions, only exeptions that can happen are from stdlib
// You can define specific names to change how the library behaves
// Define them in the file you include library in, before the library itself
// Define LAMBDA_NOALIGN to minimize node sizes by sacrificing performance
// Generaly isn't woth it
// #define LAMBDA_NOALIGN
// Define LAMBDA_NODEFAULTS to not include defaults.hpp
// Doesn't really affect the performance
// #define LAMBDA_NODEFAULTS
// Define LAMBDA_ADDITIONALS to include additional values that are generaly
// not needed
// Only works if LAMBDA_NODEFAULTS is undefined
#include "error.hpp"
#include "nodes.hpp"
#include "print.hpp"
#include "size.hpp"
#include "copy.hpp"
#include "rename.hpp"
#include "apply.hpp"
#include "reduce.hpp"
#ifndef LAMBDA_NODEFAULTS
#include "defaults.hpp"
#endif
#if (!defined(LAMBDA_NODEFAULTS) && defined(LAMBDA_ADDITIONALS))
#include "additionals.hpp"
#endif