Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mansen420 committed Mar 10, 2024
1 parent a9733e1 commit 22571f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shader_preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ bool internal_process_shader(const char* source, char* &processed_source_holder,
//WARNING : don't use the fill constructor with pushback()! reserve() instead...!
std::vector<char> processed_source;
processed_source.reserve(LENGTH);
size_t counter = 0;
while (*char_ptr != END_OF_FILE)
{
//TODO this doesn't account for paths with spaces. read everything between the quotes as input.
if(*char_ptr == '#')
{
const char* token_ptr = char_ptr;
Expand All @@ -44,7 +44,7 @@ bool internal_process_shader(const char* source, char* &processed_source_holder,
while (*input_ptr != EMPTY_SPACE && *input_ptr != NEW_LINE && *input_ptr != END_OF_FILE)
input_ptr++;

//FIXME knowsn issue : faults when #include at the end of file with no empty space OR just one char...?
//FIXME knowsn issue : faults when #include at the end of file with no empty space.
//this will probably never be a real issue but whatever...

if(input_ptr == token_ptr)
Expand Down

0 comments on commit 22571f0

Please sign in to comment.