MCPcopy Create free account
hub / github.com/ExOptsTeam/NFSMWExOpts / instance

Method instance

includes/injector/hooking.hpp:401–405  ·  view source on GitHub ↗

The instance of this specific manager This work as a shared pointer to avoid the static destruction of the manager even when a static function_hooker still wants to use it.

Source from the content-addressed store, hash-verified

399 // This work as a shared pointer to avoid the static destruction of the manager even when a static function_hooker
400 // still wants to use it.
401 static std::shared_ptr<function_hooker_manager> instance()
402 {
403 static auto fm_ptr = std::shared_ptr<function_hooker_manager>(new function_hooker_manager());
404 return fm_ptr;
405 }
406
407 };
408

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected