From ca6f1ead29a09fe7eb61601fb92e82b02bb1a750 Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Thu, 27 May 2021 00:40:19 +0000 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1cbb278..45a43d3 100644 --- a/README.md +++ b/README.md @@ -23,18 +23,18 @@ hook::make_hook(&fopen, &hook_test); `hook::get_func` is templated so that you can pass a function pointer I.E `&fopen` and the returned pointer will be of that type. -``` +```cpp return hook::get_func(&fopen)(filename, open_type); // returned value is of type: FILE* (*)(const char*, const char*); ``` ### Disable Hook -``` +```cpp hook::disable(&fopen); ``` ### Enable Hook -``` +```cpp hook::enable(&fopen); ``` \ No newline at end of file