Commit f5dce2c7 authored by Teng Qin's avatar Teng Qin

Remove unused headers and Macro

parent 8ff670d9
......@@ -16,12 +16,9 @@
#pragma once
#include <exception>
#include <cstdio>
#include <string>
#include <tuple>
#include <cstring>
#include <cerrno>
#include <cstdlib>
#undef NDEBUG
namespace ebpf {
......@@ -49,14 +46,6 @@ static inline StatusTuple mkstatus(int ret) {
return std::make_tuple(ret, std::string());
}
#define TRY(CMD) \
do { \
int __status = (CMD); \
if (__status != 0) { \
return __status; \
} \
} while (0)
#define TRY2(CMD) \
do { \
StatusTuple __stp = (CMD); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment