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
This commit is contained in:
Mike Blumenkrantz 2015-02-13 15:46:04 -05:00
parent 92079a11e7
commit 0af86790b4
1 changed files with 10 additions and 0 deletions

View File

@ -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