replace typedef with using decltype

This commit is contained in:
Fancy Zhang
2020-06-15 21:46:47 +08:00
parent 049741249d
commit 3f1bee745b

View File

@@ -15,7 +15,8 @@ void handle_events(void *cb_cookie, void *data, int data_size);
int execsnoop();
extern "C" void startThread(function<int(int)> c, promise<void> _status);
typedef void startThread_t(function<int(int)>, promise<void>);
// typedef void startThread_t(function<int(int)>, promise<void>);
using startThread_t=decltype(startThread);
startThread_t *_startThread; // only for dlsym()
} // namespace CGPROXY::EXECSNOOP