]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ftepp.c
const/variable qualifier flag for parse_variable
[xonotic/gmqcc.git] / ftepp.c
diff --git a/ftepp.c b/ftepp.c
index 1e45de9c6c3a0169deb92b52af0f9c7cd9739f4b..ddc500b828587edb2614e2a1f622ac69b97cb928 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -311,6 +311,8 @@ static bool ftepp_define_body(ftepp_t *ftepp, ppmacro *macro)
 static bool ftepp_define(ftepp_t *ftepp)
 {
     ppmacro *macro;
+    size_t l = ftepp_ctx(ftepp).line;
+
     (void)ftepp_next(ftepp);
     if (!ftepp_skipspace(ftepp))
         return false;
@@ -351,6 +353,9 @@ static bool ftepp_define(ftepp_t *ftepp)
     else {
         ppmacro_delete(macro);
     }
+
+    for (; l < ftepp_ctx(ftepp).line; ++l)
+        ftepp_out(ftepp, "\n", true);
     return true;
 }