projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b287a
)
Add hb_pair_t(,) macro as alternative to hb_pair_t<,>
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 9 May 2019 20:15:36 +0000
(13:15 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 9 May 2019 20:15:36 +0000
(13:15 -0700)
Just so it's easier to use it in other macros.
src/hb-algs.hh
patch
|
blob
|
history
diff --git
a/src/hb-algs.hh
b/src/hb-algs.hh
index
53bfa1f
..
f211242
100644
(file)
--- a/
src/hb-algs.hh
+++ b/
src/hb-algs.hh
@@
-222,6
+222,7
@@
struct hb_pair_t
T1 first;
T2 second;
};
+#define hb_pair_t(T1,T2) hb_pair_t<T1, T2>
template <typename T1, typename T2> static inline hb_pair_t<T1, T2>
hb_pair (T1&& a, T2&& b) { return hb_pair_t<T1, T2> (a, b); }