diff options
author | Lev Walkin <vlm@lionet.info> | 2006-03-06 00:30:30 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2006-03-06 00:30:30 +0000 |
commit | 0913f24d8db4280c69e2e5bef3daa762beb3b9f8 (patch) | |
tree | a9c3680c967679db605d2acc08da22594c425f8f /libasn1compiler | |
parent | fe1164b703462c6ff86266ccdb0e42b4e54ff4cc (diff) |
skip filenameless includes
Diffstat (limited to 'libasn1compiler')
-rw-r--r-- | libasn1compiler/asn1c_out.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libasn1compiler/asn1c_out.h b/libasn1compiler/asn1c_out.h index 838b1b36..63732896 100644 --- a/libasn1compiler/asn1c_out.h +++ b/libasn1compiler/asn1c_out.h @@ -84,12 +84,14 @@ int asn1c_compiled_output(arg_t *arg, const char *fmt, ...); /* Generate #include line */ #define GEN_INCLUDE(filename) do { \ int saved_target = arg->target->target; \ + if(!filename) break; \ REDIR(OT_INCLUDES); \ OUT_NOINDENT("#include <%s.h>\n", filename); \ REDIR(saved_target); \ } while(0) #define GEN_POSTINCLUDE(filename) do { \ int saved_target = arg->target->target; \ + if(!filename) break; \ REDIR(OT_POST_INCLUDE); \ OUT_NOINDENT("#include <%s.h>\n", filename); \ REDIR(saved_target); \ |