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:
parent
92079a11e7
commit
0af86790b4
10
src/bin/e.h
10
src/bin/e.h
|
@ -277,6 +277,16 @@ typedef struct _E_Rect E_Rect;
|
||||||
# define E_ENUM 5
|
# define E_ENUM 5
|
||||||
# define E_LIB_IN 6
|
# 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
|
# define E_TYPEDEFS 1
|
||||||
# include "e_includes.h"
|
# include "e_includes.h"
|
||||||
# undef E_TYPEDEFS
|
# undef E_TYPEDEFS
|
||||||
|
|
Loading…
Reference in New Issue