about summary refs log tree commit diff stats
path: root/src/uv_link_t.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-05-31 20:34:14 -0400
committerFedor Indutny <fedor@indutny.com>2016-05-31 20:34:14 -0400
commit087b8ef36bea5f6225e4b4a2c0119ba05a489641 (patch)
tree2df54ccca7499f0084373da2d072a4e50308dc59 /src/uv_link_t.c
parent7d91a2ddcb97dc64ed3bc516829dc00d0f010754 (diff)
downloaduv_link_t-087b8ef36bea5f6225e4b4a2c0119ba05a489641.tar.gz
api: default method implementations
Diffstat (limited to 'src/uv_link_t.c')
-rw-r--r--src/uv_link_t.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uv_link_t.c b/src/uv_link_t.c
index 852e26e..11bacb2 100644
--- a/src/uv_link_t.c
+++ b/src/uv_link_t.c
@@ -81,6 +81,10 @@ int uv_link_chain(uv_link_t* from, uv_link_t* to) {
   if (from->child != NULL || to->parent != NULL)
     return UV_EINVAL;
 
+  CHECK(to->methods->alloc_cb_override != NULL &&
+            to->methods->read_cb_override != NULL,
+        "Attempting to chain link without overriding callbacks");
+
   from->child = to;
   to->parent = from;