提交 eca82312 编写于 作者: 羽飞's avatar 羽飞

remove unused file

上级 1cfc6080
#pragma once
namespace common {
class DeferHelper
{
public:
DeferHelper(std::function<void> &defer) : defer_(defer)
{}
~DeferHelper()
{
defer_();
}
private:
std::function<void> &defer_;
};
} // namespace common
#define DEFER(callback) common::DeferHelper defer_helper_##__LINE__(callback)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册