Skip to content

Commit 53b10cb

Browse files
committed
Add empty document statements for rdctype::str and member functions
1 parent e63a91d commit 53b10cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

renderdoc/api/replay/basic_types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#include <tuple>
3333
#include <vector>
3434

35+
#ifndef DOCUMENT
36+
#define DOCUMENT(text)
37+
#endif
38+
3539
// we provide a basic templated type that is a fixed array that just contains a pointer to the
3640
// element
3741
// array and a size. This could easily map to C as just void* and size but in C++ at least we can be
@@ -194,6 +198,7 @@ struct array
194198
const T &back() const { return *(elems + count - 1); }
195199
};
196200

201+
DOCUMENT("");
197202
struct str : public rdctype::array<char>
198203
{
199204
str &operator=(const std::string &in);
@@ -226,6 +231,7 @@ struct str : public rdctype::array<char>
226231
return *this;
227232
}
228233

234+
DOCUMENT("");
229235
void assign(const char *const in, int32_t inCount)
230236
{
231237
Delete();
@@ -245,6 +251,7 @@ struct str : public rdctype::array<char>
245251
}
246252

247253
operator const char *() const { return elems ? elems : ""; }
254+
DOCUMENT("");
248255
const char *c_str() const { return elems ? elems : ""; }
249256
};
250257

0 commit comments

Comments
 (0)