aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-31 17:07:01 +0900
committernsfisis <nsfisis@gmail.com>2025-08-31 17:07:01 +0900
commit8ac323ccf3e7c012912d8f333abf267e32628a0f (patch)
treea37f24fd08cba788d6731ba2ad7d8c25feb5eef5 /src
parente09613812ce955c074238e8c91a0ed6eca3dc86f (diff)
downloadducc-8ac323ccf3e7c012912d8f333abf267e32628a0f.tar.gz
ducc-8ac323ccf3e7c012912d8f333abf267e32628a0f.tar.zst
ducc-8ac323ccf3e7c012912d8f333abf267e32628a0f.zip
feat: partially support _Noreturn
Diffstat (limited to 'src')
-rw-r--r--src/parse.c3
-rw-r--r--src/std.h4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/parse.c b/src/parse.c
index 2d00911..f65c065 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -1680,7 +1680,8 @@ static Type* parse_declaration_specifiers(Parser* p) {
else if (tok->kind == TokenKind_keyword_inline) {
unimplemented();
} else if (tok->kind == TokenKind_keyword__Noreturn) {
- unimplemented();
+ // TODO
+ next_token(p);
} else {
break;
}
diff --git a/src/std.h b/src/std.h
index ae67d0f..b6b0e3d 100644
--- a/src/std.h
+++ b/src/std.h
@@ -47,10 +47,6 @@ int system(const char*);
} while (0)
#ifdef __ducc__
-#define _Noreturn
-#endif
-
-#ifdef __ducc__
#define INT_CAST
#else
#define INT_CAST (int)