discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0af86790b463b5d5c42837da01bfc6091056242e

commit 0af86790b463b5d5c42837da01bfc6091056242e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Feb 13 15:46:04 2015 -0500

    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 299eb6d..ddb87b3 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

-- 


Reply via email to