diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-27 08:58:41 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-27 08:58:41 -0600 |
commit | 5a16ac6589817d20749103f45c8d3b4f1eccf784 (patch) | |
tree | 59148ec2255d14c184c7920baaae9766dc2c5ade /lib9p/srv_include | |
parent | 90f0c59f227b92a046f296865763dc77351782ed (diff) | |
parent | 112b4940c76e22606033acf437b00ad3edbd3c9c (diff) |
Diffstat (limited to 'lib9p/srv_include')
-rw-r--r-- | lib9p/srv_include/lib9p/srv.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib9p/srv_include/lib9p/srv.h b/lib9p/srv_include/lib9p/srv.h index f9d240e..cea1d79 100644 --- a/lib9p/srv_include/lib9p/srv.h +++ b/lib9p/srv_include/lib9p/srv.h @@ -91,9 +91,12 @@ struct lib9p_srv_stat { struct lib9p_s extension; #endif }; -DECLARE_ERROR_OR_(struct lib9p_srv_stat, lib9p_srv_stat); +#ifdef NDEBUG +#define lib9p_srv_stat_assert(stat) ((void)0) +#else void lib9p_srv_stat_assert(const struct lib9p_srv_stat *stat); +#endif /* interface definitions ******************************************************/ @@ -178,7 +181,8 @@ DECLARE_ERROR_OR_(lo_interface lib9p_srv_file, lib9p_srv_file); /* non-"opened" generic I/O *****************************************/ \ \ /** Strings returned from stat() must remain valid until free(). */ \ - LO_FUNC(lib9p_srv_stat_or_error , stat , struct lib9p_srv_ctx *) \ + LO_FUNC(error , stat , struct lib9p_srv_ctx *, \ + struct lib9p_srv_stat * ret) \ LO_FUNC(error , wstat , struct lib9p_srv_ctx *, \ struct lib9p_srv_stat) \ LO_FUNC(error , remove , struct lib9p_srv_ctx *) \ |