MCPcopy Create free account
hub / github.com/FastLED/FastLED / pointer_to_uptr

Function pointer_to_uptr

src/fl/stl/stdio.h:348–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346// Helper to convert pointer to fl::uptr (only instantiated for pointer types)
347template<typename T>
348typename fl::enable_if<fl::is_pointer<T>::value, fl::uptr>::type
349pointer_to_uptr(const T& ptr) FL_NOEXCEPT {
350 const void* vptr = static_cast<const void*>(ptr);
351 return reinterpret_cast<fl::uptr>(vptr); // ok reinterpret cast
352}
353
354// Overload for non-pointer types (never called at runtime, but needed for compilation)
355template<typename T>

Callers 1

format_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected