evas: fix type checking of Evas pointers in legacy functions
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 19 Jul 2019 19:44:58 +0000 (15:44 -0400)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 23 Jul 2019 05:04:43 +0000 (14:04 +0900)
commita88e1f4fb080b690137511c313bd2995c9321984
treeb8468af324d83ce7e54ed52834058fb9e6e8fcf7
parent36f725b90af2ee0e6a04e923cced1b63ffb2f67e
evas: fix type checking of Evas pointers in legacy functions

many of these functions go directly to evas internals with no eo checks,
and the existing "MAGIC_CHECK" macro has somehow become a useless null
check

type checking here is important in order to avoid crazy behavior when the
wrong object types are passed

@fix

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D9364
src/lib/evas/canvas/evas_main.c
src/lib/evas/canvas/evas_render.c
src/lib/evas/include/evas_private.h