summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/eolian/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/eolian/main.c b/src/bin/eolian/main.c
index 0545430eb5..114f989ac4 100644
--- a/src/bin/eolian/main.c
+++ b/src/bin/eolian/main.c
@@ -392,8 +392,11 @@ _write_source(const Eolian_State *eos, const char *ofname,
392 const Eolian_Class *cl = eolian_state_class_by_file_get(eos, ifname); 392 const Eolian_Class *cl = eolian_state_class_by_file_get(eos, ifname);
393 eo_gen_types_source_gen(eolian_state_objects_by_file_get(eos, ifname), buf); 393 eo_gen_types_source_gen(eolian_state_objects_by_file_get(eos, ifname), buf);
394 eo_gen_source_gen(cl, buf); 394 eo_gen_source_gen(cl, buf);
395 if (cl || (eot && eina_strbuf_length_get(buf))) 395 if (cl || eot)
396 { 396 {
397 /* always have at least a stub in order to allow unconditional generation */
398 if (!eina_strbuf_length_get(buf))
399 eina_strbuf_append(buf, "/* Nothing to implement. */\n");
397 if (!_write_file(ofname, buf)) 400 if (!_write_file(ofname, buf))
398 goto done; 401 goto done;
399 ret = EINA_TRUE; 402 ret = EINA_TRUE;