From 0af86790b463b5d5c42837da01bfc6091056242e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 13 Feb 2015 15:46:04 -0500 Subject: [PATCH] add YOLO define to throw a compile warning for Extremely Dangerous Functions a deprecated warning isn't ideal, but at least maybe someone will look at why there's a warning --- src/bin/e.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/e.h b/src/bin/e.h index 299eb6d69..ddb87b347 100644 --- a/src/bin/e.h +++ b/src/bin/e.h @@ -277,6 +277,16 @@ typedef struct _E_Rect E_Rect; # define E_ENUM 5 # define E_LIB_IN 6 + +/* if you see a deprecated warning for a YOLO function, + * you are attempting to use an extremely dangerous function. + */ +#ifdef EXECUTIVE_MODE_ENABLED + #define YOLO +#else + #define YOLO EINA_DEPRECATED +#endif + # define E_TYPEDEFS 1 # include "e_includes.h" # undef E_TYPEDEFS