aboutsummaryrefslogtreecommitdiff
path: root/docs/src/errors.rst
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2017-11-26 13:12:09 +0100
committercjihrig <cjihrig@gmail.com>2018-06-19 22:58:50 -0400
commit0802c81966e551fc31cf8b0a7b7cbff43f95cdd3 (patch)
tree08a56129a49c9e046bdff8e952f86784b3b3b96a /docs/src/errors.rst
parent46464dd1b7206b397eae9920452b029c101bc826 (diff)
downloadlibuv-0802c81966e551fc31cf8b0a7b7cbff43f95cdd3.tar.gz
libuv-0802c81966e551fc31cf8b0a7b7cbff43f95cdd3.zip
doc: document UV_*_MAP() macros
UV_ERRNO_MAP(), UV_HANDLE_TYPE_MAP(), and UV_REQ_TYPE_MAP() are considered part of the public API. This commit documents them. Fixes: https://github.com/libuv/libuv/issues/1607 PR-URL: https://github.com/libuv/libuv/pull/1653 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src/errors.rst')
-rw-r--r--docs/src/errors.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/errors.rst b/docs/src/errors.rst
index 4e30447b..7c3f95d7 100644
--- a/docs/src/errors.rst
+++ b/docs/src/errors.rst
@@ -323,6 +323,13 @@ Error constants
API
---
+.. c:function:: UV_ERRNO_MAP(iter_macro)
+
+ Macro that expands to a series of invocations of `iter_macro` for
+ each of the error constants above. `iter_macro` is invoked with two
+ arguments: the name of the error constant without the `UV_` prefix,
+ and the error message string literal.
+
.. c:function:: const char* uv_strerror(int err)
Returns the error message for the given error code. Leaks a few bytes