aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 21:40:40 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 21:40:40 +0100
commit416478739315ca41ad236197b25f87b83ab7f312 (patch)
tree93f69a2dad2ed23cd44d8dfc9c4b6f11b2b171b1 /include/pugl/pugl.h
parentd9efe12ed4e3abbbcf8b607a21559e17601b89d7 (diff)
downloadpugl-416478739315ca41ad236197b25f87b83ab7f312.tar.gz
pugl-416478739315ca41ad236197b25f87b83ab7f312.tar.bz2
pugl-416478739315ca41ad236197b25f87b83ab7f312.zip
Add PUGL_CONST_API
Just a convenience macro to make declarations a little more readable.
Diffstat (limited to 'include/pugl/pugl.h')
-rw-r--r--include/pugl/pugl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 7cb7bc2..41afc25 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -47,6 +47,10 @@
# define PUGL_CONST_FUNC
#endif
+#define PUGL_CONST_API \
+ PUGL_API \
+ PUGL_CONST_FUNC
+
#ifdef __cplusplus
# define PUGL_BEGIN_DECLS extern "C" {
# define PUGL_END_DECLS }
@@ -585,8 +589,7 @@ typedef enum {
} PuglStatus;
/// Return a string describing a status code
-PUGL_API
-PUGL_CONST_FUNC
+PUGL_CONST_API
const char*
puglStrerror(PuglStatus status);