make vec test split into .h and .c files
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
// Copyright 2022 Darwin Schuppan <darwin@nobrain.org>
|
||||
// SPDX license identifier: MIT
|
||||
|
||||
#define GENERIC_IMPL_STATIC
|
||||
#define GENERIC_IMPL
|
||||
|
||||
#define GENERIC_TYPE int
|
||||
#define GENERIC_NAME IntVec
|
||||
#define GENERIC_PREFIX int_vec
|
||||
#include <ds/generic/vec.h>
|
||||
#include "vec.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
9
tests/generic/vec.h
Normal file
9
tests/generic/vec.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef __TESTS_VEC_H__
|
||||
#define __TESTS_VEC_H__
|
||||
|
||||
#define GENERIC_TYPE int
|
||||
#define GENERIC_NAME IntVec
|
||||
#define GENERIC_PREFIX int_vec
|
||||
#include <ds/generic/vec.h>
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user