From b62b556896736121a68100a7458575e0391a3e16 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 16 Dec 2008 10:11:41 -0800 Subject: [PATCH] Moving unused hunk to unused patch --- lib/libzfs/include/libzfs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/libzfs/include/libzfs.h b/lib/libzfs/include/libzfs.h index 7bbb2c200e..c650865f30 100644 --- a/lib/libzfs/include/libzfs.h +++ b/lib/libzfs/include/libzfs.h @@ -521,6 +521,15 @@ extern int zfs_iscsi_perm_check(libzfs_handle_t *, char *, ucred_t *); extern int zfs_deleg_share_nfs(libzfs_handle_t *, char *, char *, void *, void *, int, zfs_share_op_t); +/* + * When dealing with nvlists, verify() is extremely useful + */ +#ifdef NDEBUG +#define verify(EX) ((void)(EX)) +#else +#define verify(EX) assert(EX) +#endif + /* * Utility function to convert a number to a human-readable form. */