mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-31 06:50:53 -07:00 
			
		
		
		
	Update undef.macros.h
This commit is contained in:
		| @@ -1111,4 +1111,6 @@ String csv_write_string_delimiter( AllocatorInfo a, CSV_Object* obj, char delimi | |||||||
| 	return output; | 	return output; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | #undef _adt_fprintf | ||||||
|  |  | ||||||
| #pragma endregion CSV | #pragma endregion CSV | ||||||
|   | |||||||
| @@ -29,12 +29,6 @@ | |||||||
| #	ifndef GEN_SYSTEM_MACOS | #	ifndef GEN_SYSTEM_MACOS | ||||||
| #		define GEN_SYSTEM_MACOS 1 | #		define GEN_SYSTEM_MACOS 1 | ||||||
| #	endif | #	endif | ||||||
| #	include <TargetConditionals.h> |  | ||||||
| #	if TARGET_IPHONE_SIMULATOR == 1 || TARGET_OS_IPHONE == 1 |  | ||||||
| #		ifndef GEN_SYSTEM_IOS |  | ||||||
| #			define GEN_SYSTEM_IOS 1 |  | ||||||
| #		endif |  | ||||||
| #	endif |  | ||||||
| #elif defined( __unix__ ) | #elif defined( __unix__ ) | ||||||
| #	ifndef GEN_SYSTEM_UNIX | #	ifndef GEN_SYSTEM_UNIX | ||||||
| #		define GEN_SYSTEM_UNIX 1 | #		define GEN_SYSTEM_UNIX 1 | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| #if GEN_TIME | // This undefines the macros used by the gen library | ||||||
| // This undefines the macros used by the gen library but are not necessary for the user. | #undef GEN_TIME | ||||||
|  |  | ||||||
| #undef GEN_ARCH_64_BIT | #undef GEN_ARCH_64_BIT | ||||||
| #undef GEN_ARCH_32_BIT | #undef GEN_ARCH_32_BIT | ||||||
| @@ -18,21 +18,116 @@ | |||||||
|  |  | ||||||
| #undef GEN_COMPILER_CLANG | #undef GEN_COMPILER_CLANG | ||||||
| #undef GEN_COMPILER_GCC | #undef GEN_COMPILER_GCC | ||||||
| #undef GEN_COMPILER_MINGW |  | ||||||
| #undef GEN_COMPILER_MSVC | #undef GEN_COMPILER_MSVC | ||||||
|  |  | ||||||
| #undef forceinline | #undef GEN_HAS_ATTRIBUTE | ||||||
| #undef neverinline |  | ||||||
|  | #undef GEN_COMPILER_C | ||||||
|  | #undef GEN_COMPILER_CPP | ||||||
|  |  | ||||||
|  | #undef GEN_DONT_USE_NAMESPACE | ||||||
|  | #undef GEN_NS_PARSER_BEGIN | ||||||
|  | #undef GEN_NS_PARSER_END | ||||||
|  | #undef GEN_USING_NS_PARSER | ||||||
|  | #undef GEN_NS_PARSER | ||||||
|  | #undef GEN_NS | ||||||
|  | #undef GEN_NS_BEGIN | ||||||
|  | #undef GEN_NS_END | ||||||
|  |  | ||||||
|  | #undef GEN_C_LIKE_CPP | ||||||
|  |  | ||||||
| #undef global | #undef global | ||||||
| #undef internal | #undef internal | ||||||
| #undef local_persist | #undef local_persist | ||||||
|  |  | ||||||
|  | #undef bit | ||||||
|  | #undef bitfield_is_equal | ||||||
|  |  | ||||||
|  | #undef cast | ||||||
|  |  | ||||||
|  | #undef ccast | ||||||
|  | #undef scast | ||||||
|  | #undef rcast | ||||||
|  | #undef pcast | ||||||
|  |  | ||||||
|  | #undef stringize | ||||||
|  | #undef do_once | ||||||
|  | #undef do_once_start | ||||||
|  | #undef do_once_end | ||||||
|  | #undef labeled_scope_start | ||||||
|  | #undef labeled_scope_end | ||||||
|  | #undef compiler_decorated_func_name | ||||||
|  | #undef num_args_impl | ||||||
|  | #undef num_args | ||||||
|  | #undef clamp | ||||||
|  | #undef count_of | ||||||
|  | #undef is_between | ||||||
|  | #undef size_of | ||||||
|  | #undef max | ||||||
|  | #undef min | ||||||
|  | #undef offset_of | ||||||
|  | #undef forceinline | ||||||
|  | #undef neverinline | ||||||
|  | #undef static_assert | ||||||
|  | #undef thread_local | ||||||
|  | #undef typeof | ||||||
|  |  | ||||||
|  | #undef GEN_API_C_BEGIN | ||||||
|  | #undef GEN_API_C_END | ||||||
|  |  | ||||||
|  | #undef enum_underlying | ||||||
|  | #undef nullptr | ||||||
|  | #undef GEN_PARAM_DEFAULT | ||||||
|  | #undef struct_init | ||||||
|  |  | ||||||
|  | #undef GEN_OPTIMIZE_MAPPINGS_BEGIN | ||||||
|  | #undef GEN_OPITMIZE_MAPPINGS_END | ||||||
|  |  | ||||||
|  | #undef GEN_U8_MIN | ||||||
|  | #undef GEN_U8_MAX | ||||||
|  | #undef GEN_I8_MIN | ||||||
|  | #undef GEN_I8_MAX | ||||||
|  | #undef GEN_U16_MIN | ||||||
|  | #undef GEN_U16_MAX | ||||||
|  | #undef GEN_I16_MIN | ||||||
|  | #undef GEN_I16_MAX | ||||||
|  | #undef GEN_U32_MIN | ||||||
|  | #undef GEN_U32_MAX | ||||||
|  | #undef GEN_I32_MIN | ||||||
|  | #undef GEN_I32_MAX | ||||||
|  | #undef GEN_U64_MIN | ||||||
|  | #undef GEN_U64_MAX | ||||||
|  | #undef GEN_I64_MIN | ||||||
|  | #undef GEN_I64_MAX | ||||||
|  | #undef GEN_USIZE_MIN | ||||||
|  | #undef GEN_USIZE_MAX | ||||||
|  | #undef GEN_ISIZE_MIN | ||||||
|  | #undef GEN_ISIZE_MAX | ||||||
|  | #undef GEN_USIZE_MIN | ||||||
|  | #undef GEN_USIZE_MAX | ||||||
|  | #undef GEN_ISIZE_MIN | ||||||
|  | #undef GEN_ISIZE_MAX | ||||||
|  | #undef GEN_F32_MIN | ||||||
|  | #undef GEN_F32_MAX | ||||||
|  | #undef GEN_F64_MIN | ||||||
|  | #undef GEN_F64_MAX | ||||||
|  |  | ||||||
|  | #undef to_uptr | ||||||
|  | #undef to_sptr | ||||||
|  | #undef to_mem_ptr | ||||||
|  | #undef to_mem_ptr_const | ||||||
|  |  | ||||||
| #undef kilobytes | #undef kilobytes | ||||||
| #undef megabytes | #undef megabytes | ||||||
| #undef gigabytes | #undef gigabytes | ||||||
| #undef terabytes | #undef terabytes | ||||||
|  |  | ||||||
|  | #undef GEN__ONES | ||||||
|  | #undef GEN__HIGHS | ||||||
|  | #undef GEN__HAS_ZERO | ||||||
|  | #undef GEN_DEFAULT_MEMORY_ALIGNMENT | ||||||
|  | #undef GEN_DEFAULT_ALLOCATOR_FLAGS | ||||||
|  |  | ||||||
| #undef zero_item | #undef zero_item | ||||||
| #undef zero_array | #undef zero_array | ||||||
|  |  | ||||||
| @@ -42,37 +137,67 @@ | |||||||
| #undef malloc | #undef malloc | ||||||
| #undef mfree | #undef mfree | ||||||
|  |  | ||||||
| #undef count_of | #undef GEN_DEBUG_TRAP | ||||||
| #undef is_between | #undef GEN_ASSERT | ||||||
| #undef min | #undef GEN_ASSERT_MSG | ||||||
| #undef size_of | #undef GEN_ASSERT_NOT_NULL | ||||||
| #undef swap | #undef GEN_PANIC | ||||||
|  | #undef GEN_FATAL | ||||||
|  |  | ||||||
|  | #undef GEN_FILE_OPEN_PROC | ||||||
|  | #undef GEN_FILE_READ_AT_PROC | ||||||
|  | #undef GEN_FILE_WRITE_AT_PROC | ||||||
|  | #undef GEN_FILE_SEEK_PROC | ||||||
|  | #undef GEN_FILE_CLOSE_PROC | ||||||
|  |  | ||||||
|  | #undef GEN_PRINTF_MAXLEN | ||||||
|  |  | ||||||
|  | #undef _strlen | ||||||
|  | #undef _printf_err | ||||||
|  | #undef _printf_err_va | ||||||
|  | #undef _strlen | ||||||
|  | #undef _printf_err | ||||||
|  | #undef _printf_err_va | ||||||
|  |  | ||||||
|  | #undef Array | ||||||
|  | #undef get_array_underlying_type | ||||||
|  | #undef HashTable | ||||||
|  | #undef get_hashtable_underlying_type | ||||||
|  |  | ||||||
| #undef bit |  | ||||||
| #undef bitfield_is_equal |  | ||||||
| #undef ccast |  | ||||||
| #undef scast |  | ||||||
| #undef rcast |  | ||||||
| #undef pcast |  | ||||||
| #undef do_once |  | ||||||
| #undef do_once_start |  | ||||||
| #undef do_once_end |  | ||||||
| #undef num_args |  | ||||||
| #undef num_args_impl |  | ||||||
| #undef stringize |  | ||||||
| #undef stringize |  | ||||||
| #undef stringize_va |  | ||||||
| #undef txt | #undef txt | ||||||
|  |  | ||||||
| #undef GEN_TIME | #undef NOMINMAX | ||||||
|  | #undef VC_EXTRALEAN | ||||||
|  | #undef WIN32_LEAN_AND_MEAN | ||||||
|  | #undef WIN32_MEAN_AND_LEAN | ||||||
|  |  | ||||||
|  | #undef GEN_DEFINE_ATTRIBUTE_TOKENS | ||||||
|  |  | ||||||
|  | #undef GEN_AST_BODY_CLASS_UNALLOWED_TYPES | ||||||
|  | #undef GEN_AST_BODY_FUNCTION_UNALLOWED_TYPES | ||||||
|  | #undef GEN_AST_BODY_GLOBAL_UNALLOWED_TYPES | ||||||
|  | #undef GEN_AST_BODY_EXPORT_UNALLOWED_TYPES | ||||||
|  | #undef GEN_AST_BODY_EXTERN_LINKAGE_UNALLOWED_TYPES | ||||||
|  | #undef GEN_AST_BODY_NAMESPACE_UNALLOWED_TYPES | ||||||
|  |  | ||||||
|  | #undef GEN_GLOBAL_BUCKET_SIZE | ||||||
|  | #undef GEN_CODEPOOL_NUM_BLOCKS | ||||||
|  | #undef GEN_SIZE_PER_STRING_ARENA | ||||||
|  | #undef GEN_MAX_COMMENT_LINE_LENGTH | ||||||
|  | #undef GEN_MAX_NAME_LENGTH | ||||||
|  | #undef GEN_MAX_UNTYPED_STR_LENGTH | ||||||
|  | #undef TokenMap_FixedArena | ||||||
|  | #undef GEN_LEX_ALLOCATOR_SIZE | ||||||
|  | #undef GEN_BUILDER_STR_BUFFER_RESERVE | ||||||
|  |  | ||||||
|  | #undef log_failure | ||||||
|  |  | ||||||
| #undef gen_main | #undef gen_main | ||||||
| #undef __ |  | ||||||
| #undef name | #undef name | ||||||
| #undef code | #undef code | ||||||
| #undef args | #undef args | ||||||
| #undef code_str | #undef code_str | ||||||
| #undef code_fmt | #undef code_fmt | ||||||
| #undef token_fmt | #undef token_fmt | ||||||
|  | #undef parse_fmt | ||||||
| // GEN_TIME | #undef token_fmt | ||||||
| #endif |  | ||||||
|   | |||||||
| @@ -15,4 +15,4 @@ If using the library's provided build scripts: | |||||||
|  |  | ||||||
| ```ps1 | ```ps1 | ||||||
| .\build.ps1 <compiler> <debug or omit> singleheader | .\build.ps1 <compiler> <debug or omit> singleheader | ||||||
| ``` | ``` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user