mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
Problem: test case is using internal API
It is poor style for test cases to use the internal API (i.e. libzmq classes or header files), as this code serves the purpose of teaching developers how to use the library (it doesn't do this very well, it's an ambition). Also, including headers in src/ creates problems when compiling. Solution: remove use of src/macros.hpp.
This commit is contained in:
parent
0d7e7bfac0
commit
c8318912f5
@ -27,12 +27,11 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "macros.hpp"
|
|
||||||
#include "testutil.hpp"
|
#include "testutil.hpp"
|
||||||
|
|
||||||
void ffn(void *data, void *hint) {
|
void ffn(void *data, void *hint) {
|
||||||
LIBZMQ_UNUSED (data);
|
|
||||||
// Signal that ffn has been called by writing "freed" to hint
|
// Signal that ffn has been called by writing "freed" to hint
|
||||||
|
(void) data; // Suppress 'unused' warnings at compile time
|
||||||
memcpy(hint, (void *) "freed", 5);
|
memcpy(hint, (void *) "freed", 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user