- fennec::variant & fennec::generic, TODO: Test
This commit is contained in:
@@ -213,6 +213,14 @@
|
||||
# define FENNEC_HAS_BUILTIN_IS_ENUM 0
|
||||
#endif
|
||||
|
||||
// Inconsistent without intrinsics.
|
||||
#if __has_builtin(__is_union)
|
||||
# define FENNEC_HAS_BUILTIN_IS_UNION 1
|
||||
# define FENNEC_BUILTIN_IS_UNION(arg) __is_union(arg)
|
||||
#else
|
||||
# define FENNEC_HAS_BUILTIN_IS_UNION 0
|
||||
#endif
|
||||
|
||||
// Inconsistent without intrinsics
|
||||
#if __has_builtin(__is_final)
|
||||
# define FENNEC_HAS_BUILTIN_IS_FINAL 1
|
||||
@@ -221,12 +229,20 @@
|
||||
# define FENNEC_HAS_BUILTIN_IS_FINAL 0
|
||||
#endif
|
||||
|
||||
// Inconsistent with dynamic intrinsics, requires a massive table for static intrinsics
|
||||
#if __has_builtin(__is_fundamental)
|
||||
# define FENNEC_HAS_BUILTIN_IS_FUNDAMENTAL 1
|
||||
# define FENNEC_BUILTIN_IS_FUNDAMENTAL(arg) __is_fundamental(arg)
|
||||
// Inconsistent without intrinsics
|
||||
#if __has_builtin(__is_function)
|
||||
# define FENNEC_HAS_BUILTIN_IS_FUNCTION 1
|
||||
# define FENNEC_BUILTIN_IS_FUNCTION(arg) __is_function(arg)
|
||||
#else
|
||||
# define FENNEC_HAS_BUILTIN_IS_FUNDAMENTAL 0
|
||||
# define FENNEC_HAS_BUILTIN_IS_FUNCTION 0
|
||||
#endif
|
||||
|
||||
// Inconsistent without intrinsics
|
||||
#if __has_builtin(__is_object)
|
||||
# define FENNEC_HAS_BUILTIN_IS_OBJECT 1
|
||||
# define FENNEC_BUILTIN_IS_OBJECT(arg) __is_object(arg)
|
||||
#else
|
||||
# define FENNEC_HAS_BUILTIN_IS_FUNCTION 0
|
||||
#endif
|
||||
|
||||
// Inconsistent without intrinsics
|
||||
|
||||
Reference in New Issue
Block a user