mirror of https://github.com/PCSX2/pcsx2.git
Common/StringHelpers: Fix printing of 64-bit pointers
This commit is contained in:
parent
9abaa1adf6
commit
6ff46a795f
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cinttypes>
|
||||||
#include <wx/tokenzr.h>
|
#include <wx/tokenzr.h>
|
||||||
#include "common/Dependencies.h"
|
#include "common/Dependencies.h"
|
||||||
#include "common/SafeArray.h"
|
#include "common/SafeArray.h"
|
||||||
|
@ -225,7 +226,11 @@ extern bool pxParseAssignmentString(const wxString& src, wxString& ldest, wxStri
|
||||||
#define pxsFmt FastFormatUnicode().Write
|
#define pxsFmt FastFormatUnicode().Write
|
||||||
#define pxsFmtV FastFormatUnicode().WriteV
|
#define pxsFmtV FastFormatUnicode().WriteV
|
||||||
|
|
||||||
#define pxsPtr(ptr) pxsFmt("0x%08X", (ptr)).c_str()
|
#ifdef _M_X86_64
|
||||||
|
#define pxsPtr(ptr) pxsFmt("0x%016" PRIXPTR, (ptr)).c_str()
|
||||||
|
#else
|
||||||
|
#define pxsPtr(ptr) pxsFmt("0x%08" PRIXPTR, (ptr)).c_str()
|
||||||
|
#endif
|
||||||
|
|
||||||
extern wxString& operator+=(wxString& str1, const FastFormatUnicode& str2);
|
extern wxString& operator+=(wxString& str1, const FastFormatUnicode& str2);
|
||||||
extern wxString operator+(const wxString& str1, const FastFormatUnicode& str2);
|
extern wxString operator+(const wxString& str1, const FastFormatUnicode& str2);
|
||||||
|
|
Loading…
Reference in New Issue