Update README.md

arm
_xeroxz 4 years ago
parent b127702604
commit b97ad5093b

@ -19,6 +19,14 @@ FILE* hook_test(const char* filename, const char* open_type)
hook::make_hook(&fopen, &hook_test); hook::make_hook(&fopen, &hook_test);
``` ```
### Calling Original
`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.
```
return hook::get_func(&fopen)(filename, open_type); // returned value is of type: FILE* (*)(const char*, const char*);
```
### Disable Hook ### Disable Hook
``` ```

Loading…
Cancel
Save