mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-30 22:40:54 -07:00 
			
		
		
		
	Progress & proofing of docs
This commit is contained in:
		| @@ -91,7 +91,7 @@ C_Expression _Generic( selector_arg, a_type_expr_pair, ... ) { | ||||
| The first `arg` of _Generic behaves as the "controlling expression" or the expression that resolves to a type which will dictate which of the following expressions provided after to `_Generic` will be resolved as the one used inline for the implemenation. | ||||
|  | ||||
|  | ||||
| For this library's purposes we'll be using the functional macro equivalent *(if there is an excpetion I'll link it at the end fo the section)*: | ||||
| For this library's purposes we'll be using the functional macro equivalent *(if there is an exception I'll link it at the end of this section)*: | ||||
|  | ||||
| ```c | ||||
| #define macro_that_uses_selector_arg_for_resolving_a_fucntion( selecting_exp) \ | ||||
| @@ -142,4 +142,4 @@ So for any given templated container interface. Expect the follwoing (taken stra | ||||
|  | ||||
| `GEN_RESOLVED_FUNCTION_CALL` is an empty define, its just to indicate that its intended to expand to a function call. | ||||
|  | ||||
| To see the thea actual macro definitions used: [generic_macros.h](./components/generic_macros.h) has them. They'll be injected right after the usual macros are positioned in the header file. | ||||
| To see the the actual macro definitions used - see: [generic_macros.h](./components/generic_macros.h). They'll be injected right after the usual macros in the generated header file. | ||||
|   | ||||
| @@ -800,6 +800,9 @@ do                          \ | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_INTELLISENSE_DIRECTIVES"), entry, parsed_ast, ast ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_EXECUTION_EXPRESSION_SUPPORT"), entry, parsed_ast, ast ); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			ast.append(entry); | ||||
| 		} | ||||
| 		break; | ||||
| @@ -978,6 +981,9 @@ R"(#define AST_ArrSpecs_Cap \ | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_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); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			code_types.append(entry); | ||||
| 		} | ||||
| 		break; | ||||
| @@ -1072,7 +1078,10 @@ 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_code_types, code_types ); | ||||
| 			b32 found = ignore_preprocess_cond_block(txt("GEN_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); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			ast_types.append(entry); | ||||
| @@ -1128,6 +1137,9 @@ R"(#define <interface_name>( code ) _Generic( (code), \ | ||||
| 			found = ignore_preprocess_cond_block(txt("GEN_COMPILER_CPP"), entry, parsed_interface, interface); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			found = ignore_preprocess_cond_block(txt("0"), entry, parsed_interface, interface); | ||||
| 			if (found) break; | ||||
|  | ||||
| 			interface.append(entry); | ||||
| 		} | ||||
| 		break; | ||||
|   | ||||
| @@ -420,6 +420,8 @@ word make_code, gen_make_code | ||||
|  | ||||
| namespace set_allocator_, gen_set_allocator_ | ||||
|  | ||||
| namespace Opts_, gen_Opts_ | ||||
|  | ||||
| namespace def_,     gen_def_ | ||||
| namespace parse_,   gen_parse_ | ||||
| namespace token_,   gen_token_ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user