diff --git a/onetensor/y_tensor_h.h b/onetensor/y_tensor_h.h index 8780d20..6e70e0b 100644 --- a/onetensor/y_tensor_h.h +++ b/onetensor/y_tensor_h.h @@ -147,6 +147,7 @@ long diff_timespec_nanoseconds(struct timespec time_stop, struct timespec time_s +#ifndef IMPLEMENTATION_TOOLS #define IMPLEMENTATION_TOOLS()\ \ GEN_TO_STR_N(TYPE_CHAR,2,"%c")\ @@ -266,7 +267,7 @@ long diff_timespec_nanoseconds(struct timespec time_stop, struct timespec time_s }\ \ - +#endif /* IMPLEMENTATION_TOOLS */ #ifndef __DIMENSION_T_H__ #define __DIMENSION_T_H__ @@ -367,6 +368,7 @@ GEN_HEAD_PTR_LIST(ptr_DIMENSION) #define min(x,y) (((x)<(y))?(x):(y)) #endif +#ifndef IMPLEMENTATION_DIMENSION #define IMPLEMENTATION_DIMENSION()\ \ bool littleEndian=true;\ @@ -786,4 +788,5 @@ GEN_FUNC_PTR_LIST_FREE(ptr_DIMENSION){\ }\ \ +#endif /* IMPLEMENTATION_DIMENSION */