diff options
Diffstat (limited to 'glsl_symbol_table.h')
-rw-r--r-- | glsl_symbol_table.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glsl_symbol_table.h b/glsl_symbol_table.h index ad3ccf06ef..26b90fdb7c 100644 --- a/glsl_symbol_table.h +++ b/glsl_symbol_table.h @@ -66,6 +66,14 @@ public: } /** + * Determine whether a name was declared at the current scope + */ + bool name_declared_this_scope(const char *name) + { + return _mesa_symbol_table_symbol_scope(table, -1, name) == 0; + } + + /** * \name Methods to add symbols to the table * * There is some temptation to rename all these functions to \c add_symbol |