From 3bce2e9b8a78f88bf517d7045fe9b0b47e324a02 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 4 Feb 2025 18:33:07 -0500 Subject: [PATCH] rename GEN_INTELLISENSE_DIRECTIVES -> INTELLISENSE_DIRECTIVES --- base/auxiliary/builder.cpp | 2 +- base/auxiliary/builder.hpp | 2 +- base/auxiliary/gen_template.hpp | 2 +- base/auxiliary/scanner.cpp | 6 ++--- base/auxiliary/scanner.hpp | 2 +- base/base.cpp | 2 +- base/components/ast.cpp | 2 +- base/components/ast.hpp | 2 +- base/components/ast_types.hpp | 2 +- base/components/code_serialization.cpp | 2 +- base/components/code_types.hpp | 2 +- base/components/constants.hpp | 2 +- base/components/gen/ast_inlines.hpp | 2 +- base/components/gen/ecodetypes.hpp | 2 +- base/components/gen/eoperator.hpp | 2 +- base/components/gen/especifier.hpp | 2 +- base/components/gen/etoktype.hpp | 2 +- base/components/inlines.hpp | 2 +- base/components/interface.cpp | 2 +- base/components/interface.hpp | 2 +- base/components/interface.parsing.cpp | 2 +- base/components/interface.untyped.cpp | 2 +- base/components/interface.upfront.cpp | 2 +- base/components/lexer.cpp | 2 +- base/components/parser.cpp | 2 +- base/components/parser_types.hpp | 2 +- base/components/static_data.cpp | 2 +- base/components/types.hpp | 2 +- base/dependencies/basic_types.hpp | 2 +- base/dependencies/containers.hpp | 2 +- base/dependencies/debug.cpp | 2 +- base/dependencies/debug.hpp | 2 +- base/dependencies/filesystem.cpp | 2 +- base/dependencies/filesystem.hpp | 2 +- base/dependencies/hashing.cpp | 2 +- base/dependencies/hashing.hpp | 2 +- base/dependencies/macros.hpp | 2 +- base/dependencies/memory.cpp | 2 +- base/dependencies/memory.hpp | 2 +- base/dependencies/parsing.cpp | 2 +- base/dependencies/parsing.hpp | 2 +- base/dependencies/platform.hpp | 2 +- base/dependencies/printing.cpp | 2 +- base/dependencies/printing.hpp | 2 +- base/dependencies/src_start.cpp | 2 +- base/dependencies/string_ops.cpp | 2 +- base/dependencies/string_ops.hpp | 2 +- base/dependencies/strings.cpp | 2 +- base/dependencies/strings.hpp | 2 +- base/dependencies/timing.cpp | 2 +- base/dependencies/timing.hpp | 2 +- base/helpers/base_codegen.hpp | 2 +- base/helpers/misc.hpp | 2 +- gen_c_library/c_library.cpp | 36 +++++++++++++------------- gen_segmented/segmented.cpp | 2 +- test/c_library/test.c | 2 +- 56 files changed, 75 insertions(+), 75 deletions(-) diff --git a/base/auxiliary/builder.cpp b/base/auxiliary/builder.cpp index 02adda8..391f520 100644 --- a/base/auxiliary/builder.cpp +++ b/base/auxiliary/builder.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # include "builder.hpp" #endif diff --git a/base/auxiliary/builder.hpp b/base/auxiliary/builder.hpp index eb4b0bb..65d4d5b 100644 --- a/base/auxiliary/builder.hpp +++ b/base/auxiliary/builder.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" diff --git a/base/auxiliary/gen_template.hpp b/base/auxiliary/gen_template.hpp index d64dcc2..04b5734 100644 --- a/base/auxiliary/gen_template.hpp +++ b/base/auxiliary/gen_template.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" diff --git a/base/auxiliary/scanner.cpp b/base/auxiliary/scanner.cpp index 6cde239..de0fd7b 100644 --- a/base/auxiliary/scanner.cpp +++ b/base/auxiliary/scanner.cpp @@ -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; diff --git a/base/auxiliary/scanner.hpp b/base/auxiliary/scanner.hpp index 70f2ef7..72a57b3 100644 --- a/base/auxiliary/scanner.hpp +++ b/base/auxiliary/scanner.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" diff --git a/base/base.cpp b/base/base.cpp index e62a7af..81433e4 100644 --- a/base/base.cpp +++ b/base/base.cpp @@ -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, diff --git a/base/components/ast.cpp b/base/components/ast.cpp index 62f9bbf..d8042b5 100644 --- a/base/components/ast.cpp +++ b/base/components/ast.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "static_data.cpp" #endif diff --git a/base/components/ast.hpp b/base/components/ast.hpp index 68499ab..2c9f9af 100644 --- a/base/components/ast.hpp +++ b/base/components/ast.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "types.hpp" #include "gen/ecode.hpp" diff --git a/base/components/ast_types.hpp b/base/components/ast_types.hpp index d698335..27bfae1 100644 --- a/base/components/ast_types.hpp +++ b/base/components/ast_types.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "code_types.hpp" #endif diff --git a/base/components/code_serialization.cpp b/base/components/code_serialization.cpp index d4344e6..9ec168b 100644 --- a/base/components/code_serialization.cpp +++ b/base/components/code_serialization.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "ast.cpp" #endif diff --git a/base/components/code_types.hpp b/base/components/code_types.hpp index e160aa3..212cff8 100644 --- a/base/components/code_types.hpp +++ b/base/components/code_types.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "ast.hpp" #endif diff --git a/base/components/constants.hpp b/base/components/constants.hpp index 5570960..0b4cd62 100644 --- a/base/components/constants.hpp +++ b/base/components/constants.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "interface.hpp" #endif diff --git a/base/components/gen/ast_inlines.hpp b/base/components/gen/ast_inlines.hpp index 435fa79..7ec01aa 100644 --- a/base/components/gen/ast_inlines.hpp +++ b/base/components/gen/ast_inlines.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "components/types.hpp" #endif diff --git a/base/components/gen/ecodetypes.hpp b/base/components/gen/ecodetypes.hpp index 5d49068..139e615 100644 --- a/base/components/gen/ecodetypes.hpp +++ b/base/components/gen/ecodetypes.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "components/types.hpp" #endif diff --git a/base/components/gen/eoperator.hpp b/base/components/gen/eoperator.hpp index e13688a..71bd68d 100644 --- a/base/components/gen/eoperator.hpp +++ b/base/components/gen/eoperator.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "components/types.hpp" #endif diff --git a/base/components/gen/especifier.hpp b/base/components/gen/especifier.hpp index 201b895..e03e9d4 100644 --- a/base/components/gen/especifier.hpp +++ b/base/components/gen/especifier.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "components/types.hpp" #endif diff --git a/base/components/gen/etoktype.hpp b/base/components/gen/etoktype.hpp index 747f834..1b2c17c 100644 --- a/base/components/gen/etoktype.hpp +++ b/base/components/gen/etoktype.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "components/types.hpp" #endif diff --git a/base/components/inlines.hpp b/base/components/inlines.hpp index 7843ea1..5bf6bf5 100644 --- a/base/components/inlines.hpp +++ b/base/components/inlines.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "interface.hpp" #endif diff --git a/base/components/interface.cpp b/base/components/interface.cpp index 78d29f7..b3eaf45 100644 --- a/base/components/interface.cpp +++ b/base/components/interface.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "code_serialization.cpp" #endif diff --git a/base/components/interface.hpp b/base/components/interface.hpp index 073adb2..7578f1c 100644 --- a/base/components/interface.hpp +++ b/base/components/interface.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "ast_types.hpp" #endif diff --git a/base/components/interface.parsing.cpp b/base/components/interface.parsing.cpp index 72550b8..d5f4bef 100644 --- a/base/components/interface.parsing.cpp +++ b/base/components/interface.parsing.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "gen/etoktype.cpp" #include "interface.upfront.cpp" diff --git a/base/components/interface.untyped.cpp b/base/components/interface.untyped.cpp index bc8afab..69d74bb 100644 --- a/base/components/interface.untyped.cpp +++ b/base/components/interface.untyped.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "interface.parsing.cpp" #endif diff --git a/base/components/interface.upfront.cpp b/base/components/interface.upfront.cpp index 8c5dbeb..94af5f7 100644 --- a/base/components/interface.upfront.cpp +++ b/base/components/interface.upfront.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "interface.cpp" #endif diff --git a/base/components/lexer.cpp b/base/components/lexer.cpp index 4e6b377..f501f70 100644 --- a/base/components/lexer.cpp +++ b/base/components/lexer.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "interface.upfront.cpp" #include "gen/etoktype.cpp" diff --git a/base/components/parser.cpp b/base/components/parser.cpp index 6f4ad7f..ed8b5f5 100644 --- a/base/components/parser.cpp +++ b/base/components/parser.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "gen/etoktype.cpp" #include "parser_case_macros.cpp" diff --git a/base/components/parser_types.hpp b/base/components/parser_types.hpp index f4f5deb..2393945 100644 --- a/base/components/parser_types.hpp +++ b/base/components/parser_types.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "types.hpp" #include "gen/ecode.hpp" diff --git a/base/components/static_data.cpp b/base/components/static_data.cpp index c5290e4..696b5e2 100644 --- a/base/components/static_data.cpp +++ b/base/components/static_data.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "../gen.hpp" #endif diff --git a/base/components/types.hpp b/base/components/types.hpp index 3b69a80..18762ea 100644 --- a/base/components/types.hpp +++ b/base/components/types.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "header_start.hpp" #endif diff --git a/base/dependencies/basic_types.hpp b/base/dependencies/basic_types.hpp index 79b8df3..0420d2e 100644 --- a/base/dependencies/basic_types.hpp +++ b/base/dependencies/basic_types.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "macros.hpp" #endif diff --git a/base/dependencies/containers.hpp b/base/dependencies/containers.hpp index f9d75b4..6418ce5 100644 --- a/base/dependencies/containers.hpp +++ b/base/dependencies/containers.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "printing.hpp" #endif diff --git a/base/dependencies/debug.cpp b/base/dependencies/debug.cpp index b10a98a..464208a 100644 --- a/base/dependencies/debug.cpp +++ b/base/dependencies/debug.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "src_start.cpp" #endif diff --git a/base/dependencies/debug.hpp b/base/dependencies/debug.hpp index 544ccf4..cb2970a 100644 --- a/base/dependencies/debug.hpp +++ b/base/dependencies/debug.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "dependencies/platform.hpp" # include "dependencies/macros.hpp" diff --git a/base/dependencies/filesystem.cpp b/base/dependencies/filesystem.cpp index 5014d3d..a52c621 100644 --- a/base/dependencies/filesystem.cpp +++ b/base/dependencies/filesystem.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "strings.cpp" #endif diff --git a/base/dependencies/filesystem.hpp b/base/dependencies/filesystem.hpp index 1caa47e..9d3676a 100644 --- a/base/dependencies/filesystem.hpp +++ b/base/dependencies/filesystem.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "strings.hpp" #endif diff --git a/base/dependencies/hashing.cpp b/base/dependencies/hashing.cpp index 6ac5358..fab309b 100644 --- a/base/dependencies/hashing.cpp +++ b/base/dependencies/hashing.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "memory.cpp" #endif diff --git a/base/dependencies/hashing.hpp b/base/dependencies/hashing.hpp index ee895de..2ba36e8 100644 --- a/base/dependencies/hashing.hpp +++ b/base/dependencies/hashing.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES #pragma once #include "containers.hpp" #endif diff --git a/base/dependencies/macros.hpp b/base/dependencies/macros.hpp index 7ca0d77..82235d8 100644 --- a/base/dependencies/macros.hpp +++ b/base/dependencies/macros.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "platform.hpp" #endif diff --git a/base/dependencies/memory.cpp b/base/dependencies/memory.cpp index c17aa3a..8c32c81 100644 --- a/base/dependencies/memory.cpp +++ b/base/dependencies/memory.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "printing.cpp" #endif diff --git a/base/dependencies/memory.hpp b/base/dependencies/memory.hpp index b189970..eaad19d 100644 --- a/base/dependencies/memory.hpp +++ b/base/dependencies/memory.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "debug.hpp" #endif diff --git a/base/dependencies/parsing.cpp b/base/dependencies/parsing.cpp index 255fe40..ce13e23 100644 --- a/base/dependencies/parsing.cpp +++ b/base/dependencies/parsing.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "parsing.hpp" #endif diff --git a/base/dependencies/parsing.hpp b/base/dependencies/parsing.hpp index c69b26f..3ffe4ca 100644 --- a/base/dependencies/parsing.hpp +++ b/base/dependencies/parsing.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "timing.hpp" #endif diff --git a/base/dependencies/platform.hpp b/base/dependencies/platform.hpp index 59259c6..bb3144a 100644 --- a/base/dependencies/platform.hpp +++ b/base/dependencies/platform.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once #endif diff --git a/base/dependencies/printing.cpp b/base/dependencies/printing.cpp index 01d083d..684f0ea 100644 --- a/base/dependencies/printing.cpp +++ b/base/dependencies/printing.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "strbuilder_ops.cpp" #endif diff --git a/base/dependencies/printing.hpp b/base/dependencies/printing.hpp index 19b485f..5ddc20e 100644 --- a/base/dependencies/printing.hpp +++ b/base/dependencies/printing.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "strbuilder_ops.hpp" #endif diff --git a/base/dependencies/src_start.cpp b/base/dependencies/src_start.cpp index 7fe3595..ab5e7a6 100644 --- a/base/dependencies/src_start.cpp +++ b/base/dependencies/src_start.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "header_start.hpp" #endif diff --git a/base/dependencies/string_ops.cpp b/base/dependencies/string_ops.cpp index 36b7b69..47f11f1 100644 --- a/base/dependencies/string_ops.cpp +++ b/base/dependencies/string_ops.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "debug.cpp" #endif diff --git a/base/dependencies/string_ops.hpp b/base/dependencies/string_ops.hpp index 0487186..78fa555 100644 --- a/base/dependencies/string_ops.hpp +++ b/base/dependencies/string_ops.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "memory.hpp" #endif diff --git a/base/dependencies/strings.cpp b/base/dependencies/strings.cpp index 9b59026..5bd3a47 100644 --- a/base/dependencies/strings.cpp +++ b/base/dependencies/strings.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "hashing.cpp" #endif diff --git a/base/dependencies/strings.hpp b/base/dependencies/strings.hpp index 70b2257..866e944 100644 --- a/base/dependencies/strings.hpp +++ b/base/dependencies/strings.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "hashing.hpp" #endif diff --git a/base/dependencies/timing.cpp b/base/dependencies/timing.cpp index 5258045..218c2ce 100644 --- a/base/dependencies/timing.cpp +++ b/base/dependencies/timing.cpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "filesystem.cpp" #endif diff --git a/base/dependencies/timing.hpp b/base/dependencies/timing.hpp index cf7931c..f3bda8a 100644 --- a/base/dependencies/timing.hpp +++ b/base/dependencies/timing.hpp @@ -1,4 +1,4 @@ -#ifdef GEN_INTELLISENSE_DIRECTIVES +#ifdef INTELLISENSE_DIRECTIVES # pragma once # include "filesystem.hpp" #endif diff --git a/base/helpers/base_codegen.hpp b/base/helpers/base_codegen.hpp index 07ba92e..533acfc 100644 --- a/base/helpers/base_codegen.hpp +++ b/base/helpers/base_codegen.hpp @@ -1,6 +1,6 @@ #pragma once -#if GEN_INTELLISENSE_DIRECTIVES +#if INTELLISENSE_DIRECTIVES # include "../gen.hpp" # include "misc.hpp" diff --git a/base/helpers/misc.hpp b/base/helpers/misc.hpp index 8292d64..2b949a7 100644 --- a/base/helpers/misc.hpp +++ b/base/helpers/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 diff --git a/gen_c_library/c_library.cpp b/gen_c_library/c_library.cpp index 4407cef..d804728 100644 --- a/gen_c_library/c_library.cpp +++ b/gen_c_library/c_library.cpp @@ -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 ( 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 ( 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 ( 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 ( 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 ( 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 ( 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 ( 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 ( 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 ( 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); diff --git a/gen_segmented/segmented.cpp b/gen_segmented/segmented.cpp index fa59a0d..7707419 100644 --- a/gen_segmented/segmented.cpp +++ b/gen_segmented/segmented.cpp @@ -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, diff --git a/test/c_library/test.c b/test/c_library/test.c index 89f7487..2dbf524 100644 --- a/test/c_library/test.c +++ b/test/c_library/test.c @@ -1,4 +1,4 @@ -#if GEN_INTELLISENSE_DIRECTIVES +#if INTELLISENSE_DIRECTIVES #include "../../gen_c_library/gen/gen_singleheader.h" #endif