mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Further std::string removal
This commit is contained in:
1 parent
0780976fe7
commit
4e1bc2b3e0
4 files changed
+15
-11
No files matched your search
@@ -48,15 +48,15 @@ struct MemBlockInfo {
|
||||
|
||||
void NotifyMemInfo(MemBlockFlags flags, uint32_t start, uint32_t size, const char *str, size_t strLength);
|
||||
|
||||
// This lets us avoid calling strlen on string constants, instead the string length (including null)
|
||||
// is computed at compile time.
|
||||
// This lets us avoid calling strlen on string constants, instead the string length (including null,
|
||||
// so we have to subtract 1) is computed at compile time.
|
||||
template<size_t count>
|
||||
inline void NotifyMemInfo(MemBlockFlags flags, uint32_t start, uint32_t size, const char(&str)[count]) {
|
||||
NotifyMemInfo(flags, start, size, str, count);
|
||||
NotifyMemInfo(flags, start, size, str, count - 1);
|
||||
}
|
||||
|
||||
inline void NotifyMemInfo(MemBlockFlags flags, uint32_t start, uint32_t size, const std::string &str) {
|
||||
NotifyMemInfo(flags, start, size, str.c_str(), str.size() + 1);
|
||||
inline void NotifyMemInfo(MemBlockFlags flags, uint32_t start, uint32_t size, const char *str) {
|
||||
NotifyMemInfo(flags, start, size, str, strlen(str));
|
||||
}
|
||||
|
||||
std::vector<MemBlockInfo> FindMemInfo(uint32_t start, uint32_t size);
|
||||
|
||||
Reference in new issue
Block a user