added cpp files · benjaminjack/python_cpp_example@ddb75d9 · GitHub
Skip to content

Commit ddb75d9

Browse files
committed
added cpp files
1 parent 5f891ec commit ddb75d9

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

bindings.cpp

Lines changed: 34 additions & 0 deletions

python_cpp_example/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "main.hpp"
2+
3+
int add(int i, int j)
4+
{
5+
return i + j;
6+
}
7+
8+
int subtract(int i, int j)
9+
{
10+
return i - j;
11+
}

python_cpp_example/main.hpp

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)