about summary refs log tree commit diff stats
path: root/wrapperhelper/src/parse.c
diff options
context:
space:
mode:
authorrajdakin <rajdakin@gmail.com>2024-11-26 13:56:18 +0100
committerGitHub <noreply@github.com>2024-11-26 13:56:18 +0100
commitd507f8a6d06682cdbd9a58e9d6ed56a06ae6f751 (patch)
treefd1efcea11d02b81913e8b36a0c09dabe1b5930c /wrapperhelper/src/parse.c
parentb18efe4e407140d6744e3e533521c9fee3da261c (diff)
downloadbox64-d507f8a6d06682cdbd9a58e9d6ed56a06ae6f751.tar.gz
box64-d507f8a6d06682cdbd9a58e9d6ed56a06ae6f751.zip
[WRAPPERHELPER] Accept and ignore semicolons instead of declarations (#2081)
Diffstat (limited to 'wrapperhelper/src/parse.c')
-rw-r--r--wrapperhelper/src/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wrapperhelper/src/parse.c b/wrapperhelper/src/parse.c
index 42bed983..83da8832 100644
--- a/wrapperhelper/src/parse.c
+++ b/wrapperhelper/src/parse.c
@@ -3404,6 +3404,8 @@ file_t *parse_file(machine_t *target, const char *filename, FILE *file) {
 		proc_token_t tok = proc_next_token(prep);
 		if (tok.tokt == PTOK_EOF) {
 			goto success;
+		} else if ((tok.tokt == PTOK_SYM) && (tok.tokv.sym == SYM_SEMICOLON)) {
+			// Empty destructor
 		} else if (tok.tokt == PTOK_PRAGMA) {
 			switch (tok.tokv.pragma.typ) {
 			case PRAGMA_ALLOW_INTS: {