Skip to content

Commit

Permalink
Add BEGIN_TIER1_NAMESPACE around CUtlBuffer code
Browse files Browse the repository at this point in the history
This is to help avoid name collisions when static linking.
(See 53bff2c)

P4:7324330
  • Loading branch information
zpostfacto committed Jun 15, 2022
1 parent 7012a24 commit 226eb10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tier1/utlbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

BEGIN_TIER1_NAMESPACE

//-----------------------------------------------------------------------------
// Character conversions for C strings
Expand Down Expand Up @@ -1806,4 +1807,6 @@ double CUtlBuffer::GetDouble()
double d;
GET_TYPE( double, d, "%f" );
return d;
}
}

END_TIER1_NAMESPACE

0 comments on commit 226eb10

Please # to comment.