summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/exn.h
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2017-04-19 12:30:40 +0000
committerkrasimir <krasimir@chalmers.se>2017-04-19 12:30:40 +0000
commit5c93f2fba5eadaa1e516106c08d495c14a0eb647 (patch)
treee0d2a925cc0f3c0d8ec4bac0668fb42b2a64babe /src/runtime/c/gu/exn.h
parent74ce52d761de9bc49fbb1aaf2d273d3edc34a3d6 (diff)
in libgu mark explicitly all functions that belong to the API
Diffstat (limited to 'src/runtime/c/gu/exn.h')
-rw-r--r--src/runtime/c/gu/exn.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/runtime/c/gu/exn.h b/src/runtime/c/gu/exn.h
index 14f77dbcf..6f5d0ff38 100644
--- a/src/runtime/c/gu/exn.h
+++ b/src/runtime/c/gu/exn.h
@@ -64,11 +64,11 @@ struct GuExn {
/// Allocate a new exception frame.
-GuExn*
+GU_API_DECL GuExn*
gu_new_exn(GuPool* pool);
-bool
+GU_API_DECL bool
gu_exn_is_raised(GuExn* err);
static inline void
@@ -80,7 +80,7 @@ gu_exn_clear(GuExn* err) {
#define gu_exn_caught(err, type) \
(err->caught && strcmp(err->caught, #type) == 0)
-bool
+GU_API_DECL bool
gu_exn_caught_(GuExn* err, const char* type);
static inline const void*
@@ -90,19 +90,19 @@ gu_exn_caught_data(GuExn* err)
}
/// Temporarily block a raised exception.
-void
+GU_API_DECL void
gu_exn_block(GuExn* err);
/// Show again a blocked exception.
-void
+GU_API_DECL void
gu_exn_unblock(GuExn* err);
//@private
-GuExnData*
+GU_API_DECL GuExnData*
gu_exn_raise_(GuExn* err, const char* type);
//@private
-GuExnData*
+GU_API_DECL GuExnData*
gu_exn_raise_debug_(GuExn* err, const char* type,
const char* filename, const char* func, int lineno);
@@ -163,7 +163,7 @@ gu_ok(GuExn* exn) {
typedef int GuErrno;
-void
+GU_API_DECL void
gu_raise_errno(GuExn* err);
/** @} */