Skip to content

Commit

Permalink
Unit test of encoding functions returning an int
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Oct 15, 2020
1 parent 215aa51 commit a5962bd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions include/zenoh/net/private/codec.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2017, 2020 ADLINK Technology Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https://www.apache.org/licenses/LICENSE-2.0.
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*
* Contributors:
* ADLINK zenoh team, <[email protected]>
*/

#ifndef ZENOH_C_NET_PRIVATE_CODEC_H
#define ZENOH_C_NET_PRIVATE_CODEC_H

#define _ZN_EC(fn) \
if (fn != 0) \
{ \
return -1; \
}

#endif /* ZENOH_C_NET_PRIVATE_CODEC_H */

0 comments on commit a5962bd

Please sign in to comment.