Go to the documentation of this file.
19 #ifndef _MINLIB_cfc6e05b_d8d4_4a9d_ae4b_42fa56cd3443_H_
20 #define _MINLIB_cfc6e05b_d8d4_4a9d_ae4b_42fa56cd3443_H_
24 #define MN_TEMPLATE_FULL_DECL() template< >
25 #define MN_TEMPLATE_FULL_DECL_ONE(d1,t1) template <d1 t1>
26 #define MN_TEMPLATE_FULL_DECL_TWO(d1,t1,d2,t2) template <d1 t1, d2 t2>
27 #define MN_TEMPLATE_FULL_DECL_THREE(d1,t1,d2,t2,d3,t3) template <d1 t1, d2 t2, d3 t3>
28 #define MN_TEMPLATE_DECL_ONE(t1) MN_TEMPLATE_FULL_DECL_ONE(typename,t1)
29 #define MN_TEMPLATE_DECL_TWO(t1,t2) MN_TEMPLATE_FULL_DECL_TWO(typename,t1,typename,t2)
30 #define MN_TEMPLATE_DECL_THREE(t1,t2,t3) MN_TEMPLATE_FULL_DECL_THREE(typename,t1,typename,t2,typename,t3)
31 #define MN_TEMPLATE_TYPE_ONE(type,a1) type<a1>
32 #define MN_TEMPLATE_TYPE_TWO(type,a1,a2) type<a1,a2>
33 #define MN_TEMPLATE_TYPE_THREE(type,a1,a2,a3) type<a1,a2,a3>
35 #define MN_TEMPLATE_USING_ONE(name, basic_name,d1,t1) template <d1 t1> using name = basic_name<t1>;
36 #define MN_TEMPLATE_USING_TWO(name,basic_name, d1,t1,d2,t2) template <d1 t1, d2 t2> using name = basic_name<t1, t2>;
37 #define MN_TEMPLATE_USING_THREE(name,basic_name,d1,t1,d2,t2,d3,t3) template <d1 t1, d2 t2, d3 t3> using name = basic_name<t1, t2, t3>;
38 #define MN_TEMPLATE_USING(name, basic_name) using name = basic_name;
40 #define MN_UNUSED_VARIABLE(var) do { (void)(var); } while (false)
41 #define MN_ZERO_SET(var, size) memset(var, 0, size)
42 #define MN_SAFE_DELETE(var) if((var)) { delete var; var = NULL; }
43 #define MN_SAFE_FREE(var) if((var)) { free(var); var = NULL; }
46 #define MN_EXTERNC_BEGINN extern "C" {
47 #define MN_EXTERNC_END }
49 #define MN_EXTERNC_BEGINN
50 #define MN_EXTERNC_END
54 #define MN_DEPRECATED __attribute__ ((deprecated))