aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lexer.h b/src/lexer.h
index 6a14050..632811e 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -60,6 +60,8 @@ struct lexer {
size_t acc_idx;
};
+#define lexer_get_line(lexer) ((lexer)->line)
+
lexer_t lexer_create(FILE *fp);
void lexer_destroy(lexer_t lexer);
int lexer_clear_line(lexer_t lexer);