MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / hex_to_ptr

Function hex_to_ptr

src/debug.cpp:171–176  ·  view source on GitHub ↗

* A hexadecimal offset to void* pointer conversion */

Source from the content-addressed store, hash-verified

169 * A hexadecimal offset to void* pointer conversion
170 */
171void *hex_to_ptr(std::string ptr)
172{
173 size_t idx;
174
175 return reinterpret_cast<void*>(std::stoul(ptr, &idx, 16));
176}
177
178/**
179 * Try to run addr2line for the given executable and address.

Callers 1

locate_source_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected