diff options
Diffstat (limited to 'src/scope.h')
-rw-r--r-- | src/scope.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/scope.h b/src/scope.h index c221703..2636990 100644 --- a/src/scope.h +++ b/src/scope.h @@ -14,6 +14,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +#ifndef SCOPE_H +#define SCOPE_H + #include "ast.h" #include "string_view.h" #include "vector.h" @@ -41,6 +44,8 @@ void scope_leave(scope_t *scope); ast_node_t * -scope_get(scope_t *scope, ast_identifier_t *identifier); +scope_get(scope_t *scope, string_view_t name); void scope_push(scope_t *scope, ast_identifier_t *identifier, ast_node_t *node); + +#endif /* SCOPE_H */ |