all broken

This commit is contained in:
Hugo LAMY
2022-07-02 18:30:27 +02:00
parent 9bde325ece
commit 52fa6ff65b
5 changed files with 27 additions and 18 deletions

View File

@@ -20,13 +20,14 @@
// defines
// ****************************************
# define TITLE(s) std::cout << "\n" B_PURPLE #s RESET "\n\n";
# define VAL(n) val<T>(n)
# define VALT(n) val<T>(n)
# define VALU(n) val<U>(n)
# define TOI(n) toi<T>(n)
# define PRINT(n) print<>(n, #n);
# define DELETE delete_structs();
# define TITLE(s) std::cout << "\n" B_PURPLE #s RESET "\n\n";
# define VAL(n) val<T>(n)
# define VALT(n) val<T>(n)
# define VALU(n) val<U>(n)
# define TOI(n) toi<T>(n)
# define PRINT(n) print<>(n, #n);
# define DELETE delete_structs();
# define DISALLOW_MYSTRUCT allow_mystruct = 0;
// prototypes
@@ -43,7 +44,7 @@ extern std::vector< mystruct* > mem_list;
// adding each test to the list
// ***************************
#define TEST(f_name) TEST_V(f_name)
#define TEST_S(f_name) TEST_V(f_name)
/*
*/
@@ -56,7 +57,9 @@ extern std::vector< mystruct* > mem_list;
add_to_list(#f_name, "int", new(s_ ## f_name <int>));\
add_to_list(#f_name, "char", new(s_ ## f_name <char>));\
add_to_list(#f_name, "std::string", new(s_ ## f_name <std::string>));\
add_to_list(#f_name, "mystruct*", new(s_ ## f_name <mystruct*>));\
if (allow_mystruct)\
add_to_list(#f_name, "mystruct*", new(s_ ## f_name <mystruct*>));\
allow_mystruct = 1;\
}\
template <class T>\
void s_ ## f_name <T>::func()