From 3f1bee745bd265553f0d2c9bb73c53bac2b62099 Mon Sep 17 00:00:00 2001 From: Fancy Zhang Date: Mon, 15 Jun 2020 21:46:47 +0800 Subject: [PATCH] replace typedef with using decltype --- src/execsnoop.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/execsnoop.h b/src/execsnoop.h index 86783d7..017658e 100644 --- a/src/execsnoop.h +++ b/src/execsnoop.h @@ -15,7 +15,8 @@ void handle_events(void *cb_cookie, void *data, int data_size); int execsnoop(); extern "C" void startThread(function c, promise _status); -typedef void startThread_t(function, promise); +// typedef void startThread_t(function, promise); +using startThread_t=decltype(startThread); startThread_t *_startThread; // only for dlsym() } // namespace CGPROXY::EXECSNOOP