forked from enlightenment/efl
eolian: verbose type warnings for EFL by default
This commit is contained in:
parent
cbca4e3c12
commit
2998da56e3
|
@ -20,12 +20,12 @@ SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h .eot .eot.h
|
||||||
%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
|
%.eo.h: %.eo ${_EOLIAN_GEN_DEP}
|
||||||
$(AM_V_EOL) \
|
$(AM_V_EOL) \
|
||||||
$(MKDIR_P) $(dir $@); \
|
$(MKDIR_P) $(dir $@); \
|
||||||
$(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
|
EOLIAN_VERBOSE_TYPES=1 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
|
||||||
|
|
||||||
%.eot.h: %.eot ${_EOLIAN_GEN_DEP}
|
%.eot.h: %.eot ${_EOLIAN_GEN_DEP}
|
||||||
$(AM_V_EOL) \
|
$(AM_V_EOL) \
|
||||||
$(MKDIR_P) $(dir $@); \
|
$(MKDIR_P) $(dir $@); \
|
||||||
$(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
|
EOLIAN_VERBOSE_TYPES=1 $(EOLIAN_GEN) $(EOLIAN_FLAGS) --gh -o $@ $<
|
||||||
|
|
||||||
%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
|
%.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
|
||||||
$(AM_V_EOL) \
|
$(AM_V_EOL) \
|
||||||
|
|
|
@ -176,6 +176,12 @@ _type_error(const Validator *vs, const Eolian_Type *tp, const char *msg)
|
||||||
{
|
{
|
||||||
if (vs->silent_types)
|
if (vs->silent_types)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
if (getenv("EOLIAN_VERBOSE_TYPES"))
|
||||||
|
{
|
||||||
|
fprintf(stderr, "eolian:%s:%d:%d: %s\n", tp->base.file, tp->base.line,
|
||||||
|
tp->base.column, msg);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
eina_log_print(_eolian_log_dom, EINA_LOG_LEVEL_WARN, tp->base.file, "",
|
eina_log_print(_eolian_log_dom, EINA_LOG_LEVEL_WARN, tp->base.file, "",
|
||||||
tp->base.line, "%s at column %d", msg, tp->base.column);
|
tp->base.line, "%s at column %d", msg, tp->base.column);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue