Commit f5dce2c7 authored by Teng Qin's avatar Teng Qin

Remove unused headers and Macro

parent 8ff670d9
...@@ -16,12 +16,9 @@ ...@@ -16,12 +16,9 @@
#pragma once #pragma once
#include <exception> #include <cstdio>
#include <string> #include <string>
#include <tuple> #include <tuple>
#include <cstring>
#include <cerrno>
#include <cstdlib>
#undef NDEBUG #undef NDEBUG
namespace ebpf { namespace ebpf {
...@@ -49,14 +46,6 @@ static inline StatusTuple mkstatus(int ret) { ...@@ -49,14 +46,6 @@ static inline StatusTuple mkstatus(int ret) {
return std::make_tuple(ret, std::string()); return std::make_tuple(ret, std::string());
} }
#define TRY(CMD) \
do { \
int __status = (CMD); \
if (__status != 0) { \
return __status; \
} \
} while (0)
#define TRY2(CMD) \ #define TRY2(CMD) \
do { \ do { \
StatusTuple __stp = (CMD); \ 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