Support shader preprocessor concatenation symbol

This commit is contained in:
Johan Aires Rastén 2023-04-06 16:50:16 +02:00
parent eca6f0eb54
commit 6e1f68109b
4 changed files with 393 additions and 12 deletions

View file

@ -205,6 +205,7 @@ private:
Error expand_macros(const String &p_string, int p_line, String &r_result);
bool expand_macros_once(const String &p_line, int p_line_number, const RBMap<String, Define *>::Element *p_define_pair, String &r_expanded);
bool find_match(const String &p_string, const String &p_value, int &r_index, int &r_index_start);
void concatenate_macro_body(String &r_body);
String next_directive(Tokenizer *p_tokenizer, const Vector<String> &p_directives);
void add_to_output(const String &p_str);