include/llfio/v2.0/logging.hpp
// Returns the LLFIO namespace as a string
Returns the LLFIO namespace as a string
Returns the LLFIO namespace as a string
inline span<char> llfio_namespace_string()
  {
    static char buffer[64];
    static size_t length;
    if(length)
      return span<char>(buffer, length);
    const char *src = LLFIO_LOG_STRINGIFY(LLFIO_V2_NAMESPACE);
    char *bufferp = buffer;
    for(; *src && (bufferp - buffer) < (ptrdiff_t) sizeof(buffer); src++)
    {
      if(*src != ' ')
        *bufferp++ = *src;
    }
    *bufferp = 0;
    length = bufferp - buffer;
    return span<char>(buffer, length);
  }
inline span < char > llfio_namespace_string ( ) { static char buffer [ 64 ] ; static size_t length ; if ( length ) return span < char > ( buffer , length ) ; const char * src = LLFIO_LOG_STRINGIFY ( LLFIO_V2_NAMESPACE ) ; char * bufferp = buffer ; for ( ; * src && ( bufferp - buffer ) < ( ptrdiff_t ) sizeof ( buffer ) ; src ++ ) { if ( * src != ' ' ) * bufferp ++ = * src ; } * bufferp = 0 ; length = bufferp - buffer ; return span < char > ( buffer , length ) ; }
Returns the LLFIO namespace as a string
Returns the LLFIO namespace as a string