Add the ability to mark a function as never returning to the caller.
Signed-off-by: Mike Holmes <[email protected]>
---
include/odp/api/hints.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h
index 7f04886..a7aa90e 100644
--- a/include/odp/api/hints.h
+++ b/include/odp/api/hints.h
@@ -25,6 +25,10 @@ extern "C" {
#ifdef __GNUC__
+/** Define a fn that does not return
+ */
+#define ODP_NORETURN __attribute__((__noreturn__))
+
/** Define a weak symbol
* This is primarily useful in defining library functions that can be
* overridden in user code.
--
2.1.0
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp