summaryrefslogtreecommitdiffstats
path: root/externals/microprofile
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-12 15:50:48 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-03-12 15:50:48 +0100
commit448856695a5eebfccf46b69918cd18369c849e15 (patch)
treee29a1c88479cee8f11cedfa1e3abf2007f769e2c /externals/microprofile
parentMerge pull request #3494 from ReinUsesLisp/fix-cs-pipeline (diff)
downloadyuzu-448856695a5eebfccf46b69918cd18369c849e15.tar
yuzu-448856695a5eebfccf46b69918cd18369c849e15.tar.gz
yuzu-448856695a5eebfccf46b69918cd18369c849e15.tar.bz2
yuzu-448856695a5eebfccf46b69918cd18369c849e15.tar.lz
yuzu-448856695a5eebfccf46b69918cd18369c849e15.tar.xz
yuzu-448856695a5eebfccf46b69918cd18369c849e15.tar.zst
yuzu-448856695a5eebfccf46b69918cd18369c849e15.zip
Diffstat (limited to '')
-rw-r--r--externals/microprofile/microprofile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.h
index cdb312b87..c1556d10c 100644
--- a/externals/microprofile/microprofile.h
+++ b/externals/microprofile/microprofile.h
@@ -243,6 +243,7 @@ typedef uint32_t ThreadIdType;
#define MICROPROFILE_DEFINE_GPU(var, name, color) MicroProfileToken g_mp_##var = MicroProfileGetToken("GPU", name, color, MicroProfileTokenTypeGpu)
#define MICROPROFILE_TOKEN_PASTE0(a, b) a ## b
#define MICROPROFILE_TOKEN_PASTE(a, b) MICROPROFILE_TOKEN_PASTE0(a,b)
+#define MICROPROFILE_TOKEN(var) g_mp_##var
#define MICROPROFILE_SCOPE(var) MicroProfileScopeHandler MICROPROFILE_TOKEN_PASTE(foo, __LINE__)(g_mp_##var)
#define MICROPROFILE_SCOPE_TOKEN(token) MicroProfileScopeHandler MICROPROFILE_TOKEN_PASTE(foo, __LINE__)(token)
#define MICROPROFILE_SCOPEI(group, name, color) static MicroProfileToken MICROPROFILE_TOKEN_PASTE(g_mp,__LINE__) = MicroProfileGetToken(group, name, color, MicroProfileTokenTypeCpu); MicroProfileScopeHandler MICROPROFILE_TOKEN_PASTE(foo,__LINE__)( MICROPROFILE_TOKEN_PASTE(g_mp,__LINE__))