From 7af3cfdfa06c8065e85b7a6408d0dd9d51099cc8 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 6 Nov 2022 12:39:17 +0100 Subject: [PATCH] Correct C++ signature --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f1ca28..fbfe01e 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ and put your error handling code in there. This function will automatically over This function needs to have C linkage and be unmangled. If you're using other languages, this might not be the case, for example, a C++ implementation would need the following signature: -`extern "C" noreturn void minitar_handle_panic(const char* message)` +`extern "C" [[noreturn]] void minitar_handle_panic(const char* message)` and a Rust implementation would need: