summaryrefslogtreecommitdiff
path: root/deps/fff/test/include/custom_function.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/fff/test/include/custom_function.hpp')
-rw-r--r--deps/fff/test/include/custom_function.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/fff/test/include/custom_function.hpp b/deps/fff/test/include/custom_function.hpp
new file mode 100644
index 0000000..d9f3934
--- /dev/null
+++ b/deps/fff/test/include/custom_function.hpp
@@ -0,0 +1,10 @@
+/* Copyright 2022 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#pragma once
+
+#include <functional>
+
+#define CUSTOM_FFF_FUNCTION_TEMPLATE(RETURN, FUNCNAME, ...) \
+ std::function<RETURN (__VA_ARGS__)> FUNCNAME