691b6ef342
macros: simplify static assert fallback to use __COUNTER__
...
It is rather annoying that the other sizeof form doesn't work with Clang.
This at least gets things working (assuming you have __COUNTER__ support)
which most things we care about do at this point (including MSVC).
2020-08-14 12:59:29 -07:00
72d70b8514
sysprof-capture: fix typo
2020-07-07 07:50:58 -07:00
555ec04e32
macros: check for C++ 14 feature macros
2020-07-06 16:09:03 -07:00
57183ab8e2
macros: add static assert helper
...
So that we can use this from gnu99 such as from GTK.
2020-07-04 16:11:31 -07:00
50d33452ab
macros: add helper to check for gcc version
2020-07-04 16:11:06 -07:00
14078e6c4d
libsysprof-capture: Use SYSPROF_INT64_CONSTANT instead of GLib version
...
Same for the unsigned version. They do the same thing as the GLib
versions.
Signed-off-by: Philip Withnall <withnall@endlessm.com >
Helps: #40
2020-07-03 22:00:34 +01:00
175c53aed8
libsysprof-capture: Use SYSPROF_PRINTF rather than G_GNUC_PRINTF
...
It does the same thing for modern compilers.
Signed-off-by: Philip Withnall <withnall@endlessm.com >
Helps: #40
2020-07-03 22:00:34 +01:00
f925fab564
libsysprof-capture: Replace G_{UN,}LIKELY with SYSPROF_{UN,}LIKELY
...
This does the same thing for modern compilers, but without the GLib
dependency.
Signed-off-by: Philip Withnall <withnall@endlessm.com >
Helps: #40
2020-07-03 22:00:34 +01:00
c9f54fcc68
libsysprof-capture: Replace G_GNUC_INTERNAL with SYSPROF_INTERNAL
...
It does the same thing for modern compilers.
Signed-off-by: Philip Withnall <withnall@endlessm.com >
Helps: #40
2020-07-03 22:00:34 +01:00
41ec04ea99
libsysprof-capture: Replace G_BEGIN_DECLS with SYSPROF_BEGIN_DECLS
...
It does the same job, but doesn’t require GLib.
Signed-off-by: Philip Withnall <withnall@endlessm.com >
Helps: #40
2020-07-03 22:00:34 +01:00