tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

uniquify.h (569B)


      1 // Copyright 2023 The Chromium Authors
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef BASE_MACROS_UNIQUIFY_H_
      6 #define BASE_MACROS_UNIQUIFY_H_
      7 
      8 #include "base/macros/concat.h"
      9 
     10 // A macro to create a "unique" token name beginning with `name` by appending
     11 // the current line number. This is generally used inside other macros that need
     12 // to create temporaries while minimizing the likelihood of name conflicts.
     13 #define BASE_UNIQUIFY(name) BASE_CONCAT(name, __LINE__)
     14 
     15 #endif  // BASE_MACROS_UNIQUIFY_H_