Skip to content

Commit

Permalink
MWE for python binding with a test add function
Browse files Browse the repository at this point in the history
  • Loading branch information
amritagos committed Nov 5, 2023
1 parent 15f0cf1 commit 1e7f186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "add.hpp"

PYBIND11_MODULE(extfirst, m) {
PYBIND11_MODULE(robbielib, m) {
m.doc() = "pybind11 example plugin"; // optional module docstring

m.def("add", &add, "A function that adds two numbers");
Expand Down
2 changes: 1 addition & 1 deletion include/add.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef ADD_H
#define ADD_H

inline int add(int i, int j){
int add(int i, int j){
return i+j;
}

Expand Down

0 comments on commit 1e7f186

Please sign in to comment.