got intellisense working for the most part...

VScode works withs some issues.
VS2022 fails.
10xEditor works fine.
JetBrains Rider fails due to it not supporting <push/pop>_macro pragmas
This commit is contained in:
2023-08-21 23:02:20 -04:00
parent 7be3617083
commit db6e8b33eb
35 changed files with 55 additions and 52 deletions

View File

@ -4,7 +4,7 @@
// This is a simple file reader that reads the entire file into memory.
// It has an extra option to skip the first few lines for undesired includes.
// This is done so that includes can be kept in dependency and component files so that intellisense works.
Code scan_file( char const* path, bool skip_header_includes = true )
Code scan_file( char const* path, bool skip_initial_directives = true )
{
FileInfo file;
@ -24,7 +24,7 @@ Code scan_file( char const* path, bool skip_header_includes = true )
file_read( & file, str, fsize );
str.get_header().Length = fsize;
if ( skip_header_includes )
if ( skip_initial_directives )
{
#define current (*scanner)
StrC toks[] {