Skip to content

Commit 5b7a890

Browse files
authored
Add readme
1 parent 94e2945 commit 5b7a890

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ExprCpp
2+
Same as `std.Expr()`, but takes arbitrary C++ functions instead of MaskTools RPN expressions.
3+
4+
## Example
5+
```
6+
user_func = '''
7+
int func(int x, int y) {
8+
return x/4 + y/4;
9+
}
10+
'''
11+
clip00 = core.endill.expr_cpp(clip00, clip00, user_func)
12+
```
13+
14+
## Building Prerequsites for Linux
15+
* Compiler with C++17 support
16+
* CMake 3.16.3+
17+
* LLVM 10 (`llvm-10-dev`)
18+
* Clang 10 (`libclang-cpp10-dev`)
19+
```
20+
mkdir build
21+
cd build
22+
cmake ..
23+
cmake --build .
24+
```
25+
26+
## Building for Windows
27+
Only as a part of LLVM build, because Windows distibution of LLVM doesn't expose C++ interface.

0 commit comments

Comments
 (0)