Update README.md

arm
_xeroxz 3 years ago
parent b97ad5093b
commit ca6f1ead29

@ -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. `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*); return hook::get_func(&fopen)(filename, open_type); // returned value is of type: FILE* (*)(const char*, const char*);
``` ```
### Disable Hook ### Disable Hook
``` ```cpp
hook::disable(&fopen); hook::disable(&fopen);
``` ```
### Enable Hook ### Enable Hook
``` ```cpp
hook::enable(&fopen); hook::enable(&fopen);
``` ```
Loading…
Cancel
Save