mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-30 22:40:54 -07:00 
			
		
		
		
	rename GEN_INTELLISENSE_DIRECTIVES -> INTELLISENSE_DIRECTIVES
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	include "builder.hpp" | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "helpers/push_ignores.inline.hpp" | ||||
| #	include "components/header_start.hpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "helpers/push_ignores.inline.hpp" | ||||
| #	include "components/header_start.hpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	include "scanner.hpp" | ||||
| #endif | ||||
|  | ||||
| @@ -24,7 +24,7 @@ Code scan_file( char const* path ) | ||||
| 		file_read( & file, str, fsize ); | ||||
| 		strbuilder_get_header(str)->Length = fsize; | ||||
|  | ||||
| 	// Skip GEN_INTELLISENSE_DIRECTIVES preprocessor blocks | ||||
| 	// Skip INTELLISENSE_DIRECTIVES preprocessor blocks | ||||
| 	// Its designed so that the directive should be the first thing in the file. | ||||
| 	// Anything that comes before it will also be omitted. | ||||
| 	{ | ||||
| @@ -33,7 +33,7 @@ Code scan_file( char const* path ) | ||||
| 	#define move_fwd() do { ++ scanner; -- left; } while (0) | ||||
| 		const Str directive_start = txt( "ifdef" ); | ||||
| 		const Str directive_end   = txt( "endif" ); | ||||
| 		const Str def_intellisense = txt("GEN_INTELLISENSE_DIRECTIVES" ); | ||||
| 		const Str def_intellisense = txt("INTELLISENSE_DIRECTIVES" ); | ||||
|  | ||||
| 		bool        found_directive = false; | ||||
| 		char const* scanner         = (char const*)str; | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "helpers/push_ignores.inline.hpp" | ||||
| #	include "components/header_start.hpp" | ||||
|   | ||||
| @@ -30,7 +30,7 @@ int gen_main() | ||||
| 	gen::init( & ctx); | ||||
|  | ||||
| 	CodeBody gen_component_header = def_global_body( args( | ||||
| 		def_preprocess_cond( PreprocessCond_IfDef, txt("GEN_INTELLISENSE_DIRECTIVES") ), | ||||
| 		def_preprocess_cond( PreprocessCond_IfDef, txt("INTELLISENSE_DIRECTIVES") ), | ||||
| 		pragma_once, | ||||
| 		def_include(txt("components/types.hpp")), | ||||
| 		preprocess_endif, | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "static_data.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "types.hpp" | ||||
| #include "gen/ecode.hpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "code_types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "ast.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "ast.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "interface.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "components/types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "components/types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "components/types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "components/types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "components/types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "interface.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "code_serialization.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "ast_types.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "gen/etoktype.cpp" | ||||
| #include "interface.upfront.cpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "interface.parsing.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "interface.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "interface.upfront.cpp" | ||||
| #include "gen/etoktype.cpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "gen/etoktype.cpp" | ||||
| #include "parser_case_macros.cpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "types.hpp" | ||||
| #include "gen/ecode.hpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "../gen.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "header_start.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "macros.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "printing.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #   include "src_start.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "dependencies/platform.hpp" | ||||
| #	include "dependencies/macros.hpp" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "strings.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "strings.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "memory.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #pragma once | ||||
| #include "containers.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #   pragma once | ||||
| #	include "platform.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "printing.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "debug.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "parsing.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "timing.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "strbuilder_ops.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "strbuilder_ops.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "header_start.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "debug.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "memory.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "hashing.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "hashing.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "filesystem.cpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	pragma once | ||||
| #	include "filesystem.hpp" | ||||
| #endif | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| #pragma once | ||||
|  | ||||
| #if GEN_INTELLISENSE_DIRECTIVES | ||||
| #if INTELLISENSE_DIRECTIVES | ||||
| #	include "../gen.hpp" | ||||
| #	include "misc.hpp" | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| #pragma once | ||||
|  | ||||
| #ifdef GEN_INTELLISENSE_DIRECTIVES | ||||
| #ifdef INTELLISENSE_DIRECTIVES | ||||
| #	define GEN_DEFINE_LIBRARY_CODE_CONSTANTS | ||||
| #	define GEN_ENFORCE_STRONG_CODE_TYPES | ||||
| #	define GEN_EXPOSE_BACKEND | ||||
|   | ||||
| @@ -306,7 +306,7 @@ do                          \ | ||||
| 		break; | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_header_memory, header_memory ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_header_memory, header_memory ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			header_memory.append(entry); | ||||
| @@ -334,7 +334,7 @@ do                          \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_header_printing, header_printing ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_header_printing, header_printing ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			header_printing.append(entry); | ||||
| @@ -391,7 +391,7 @@ do                          \ | ||||
|  | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_header_strings, header_strings ); | ||||
| 			ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_header_strings, header_strings ); | ||||
| 		} | ||||
| 		break; | ||||
|  | ||||
| @@ -472,7 +472,7 @@ do                          \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_header_filesystem, header_filesystem ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_header_filesystem, header_filesystem ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			header_filesystem.append(entry); | ||||
| @@ -532,7 +532,7 @@ do                          \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_header_parsing, header_parsing ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_header_parsing, header_parsing ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			header_parsing.append(entry); | ||||
| @@ -640,7 +640,7 @@ do                          \ | ||||
|  | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_types, types ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_types, types ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			types.append(entry); | ||||
| @@ -702,7 +702,7 @@ do                          \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_parser_types, parser_types ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_parser_types, parser_types ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			parser_types.append(entry); | ||||
| @@ -797,7 +797,7 @@ do                          \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_ast, ast ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_ast, ast ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_EXECUTION_EXPRESSION_SUPPORT"), entry, parsed_ast, ast ); | ||||
| @@ -978,7 +978,7 @@ R"(#define AST_ArrSpecs_Cap \ | ||||
| 				++ entry; // Skip a newline... | ||||
| 				break; | ||||
| 			} | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_code_types, code_types ); | ||||
| 			found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_code_types, code_types ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_EXECUTION_EXPRESSION_SUPPORT"), entry, parsed_code_types, code_types); | ||||
| @@ -1078,7 +1078,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 		case CT_Preprocess_If: | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_ast_types, ast_types ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_ast_types, ast_types ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_EXECUTION_EXPRESSION_SUPPORT"), entry, parsed_ast_types, ast_types); | ||||
| @@ -1132,7 +1132,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 		case CT_Preprocess_If: | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_interface, interface ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_interface, interface ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_COMPILER_CPP"), entry, parsed_interface, interface); | ||||
| @@ -1221,7 +1221,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 		case CT_Preprocess_If: | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_inlines, inlines ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_inlines, inlines ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_COMPILER_CPP"), entry, parsed_interface, interface); | ||||
| @@ -1263,7 +1263,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_constants, constants ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_constants, constants ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			constants.append(entry); | ||||
| @@ -1302,7 +1302,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_header_builder, header_builder ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_header_builder, header_builder ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			header_builder.append(entry); | ||||
| @@ -1446,7 +1446,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_src_ast, src_ast ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_src_ast, src_ast ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			src_ast.append(entry); | ||||
| @@ -1481,7 +1481,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_src_upfront, src_upfront ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_src_upfront, src_upfront ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			src_upfront.append(entry); | ||||
| @@ -1520,7 +1520,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_src_lexer, src_lexer ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_src_lexer, src_lexer ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			src_lexer.append(entry); | ||||
| @@ -1569,7 +1569,7 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 	{ | ||||
| 		case CT_Preprocess_IfDef: | ||||
| 		{ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_src_parser, src_parser ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("INTELLISENSE_DIRECTIVES"), entry, parsed_src_parser, src_parser ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			src_parser.append(entry); | ||||
|   | ||||
| @@ -114,7 +114,7 @@ int gen_main() | ||||
| 	} | ||||
|  | ||||
| 	CodeBody gen_component_header = def_global_body( args( | ||||
| 		def_preprocess_cond( PreprocessCond_IfDef, txt("GEN_INTELLISENSE_DIRECTIVES") ), | ||||
| 		def_preprocess_cond( PreprocessCond_IfDef, txt("INTELLISENSE_DIRECTIVES") ), | ||||
| 		pragma_once, | ||||
| 		def_include(txt("components/types.hpp")), | ||||
| 		preprocess_endif, | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #if GEN_INTELLISENSE_DIRECTIVES | ||||
| #if INTELLISENSE_DIRECTIVES | ||||
| #include "../../gen_c_library/gen/gen_singleheader.h" | ||||
| #endif | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user