summaryrefslogtreecommitdiff
path: root/src/Common.ml
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2014-10-06 00:07:38 +0200
committerGrégoire Duchêne <gduchene@awhk.org>2014-10-06 00:07:38 +0200
commit0646108378678dfe9043b004bae38718e6ef7f73 (patch)
tree45e7a7f982f8b66bbe3c8c665f388d34b2dbec3e /src/Common.ml
parent9b4304908c91cd4721d10844a1c49c25032d359d (diff)
[REBME] First draft of the APIapi
Diffstat (limited to 'src/Common.ml')
-rw-r--r--src/Common.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common.ml b/src/Common.ml
index 6f7c5f4..8f8d8d6 100644
--- a/src/Common.ml
+++ b/src/Common.ml
@@ -198,3 +198,7 @@ let lift3 (type a) (type b) (type c) (type d)
function
| [x; y; z] -> Obj.repr @$ f (cast a x) (cast b y) (cast c z)
| xs -> unsupported_arity 3 @$ List.length xs
+
+let string_of_string_option = function
+ | Some str -> str
+ | None -> ""