mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-11 07:30:56 +00:00
Make libbpf headers possible to include
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
#include <pybind11/pybind11.h>
|
||||
|
||||
#define STRINGIFY(x) #x
|
||||
#define MACRO_STRINGIFY(x) STRINGIFY(x)
|
||||
|
||||
extern "C" {
|
||||
#include "bpf/libbpf.h"
|
||||
}
|
||||
|
||||
int add(int i, int j) {
|
||||
return i + j;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user