diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-04 14:18:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-10-04 14:18:38 +0200 |
commit | 6f6c10491ce0e973fe8328508fe2a232c2189016 (patch) | |
tree | 8163d6bf03edfb050fa14a408e38030246c0a99c /cli/generator.cxx | |
parent | 6a9a911f05bbd0d2a63a06512733a4a6ff5b3e65 (diff) |
Move runtime inline function to inline file
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r-- | cli/generator.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cli/generator.cxx b/cli/generator.cxx index 844981a..801f7e5 100644 --- a/cli/generator.cxx +++ b/cli/generator.cxx @@ -14,10 +14,11 @@ #include <cutl/compiler/cxx-indenter.hxx> #include "header.hxx" -#include "source.hxx" #include "inline.hxx" +#include "source.hxx" #include "runtime-header.hxx" +#include "runtime-inline.hxx" #include "runtime-source.hxx" #include "context.hxx" @@ -180,9 +181,8 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) << "#define " << guard << endl << endl; - generate_runtime_header_decl (ctx); + generate_runtime_header (ctx); generate_header (ctx); - generate_runtime_header_impl (ctx); if (inl) { @@ -200,6 +200,7 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) { cxx_filter filt (ixx); context ctx (ixx, unit, ops); + generate_runtime_inline (ctx); generate_inline (ctx); } @@ -214,9 +215,13 @@ generate (options const& ops, semantics::cli_unit& unit, path const& p) << endl; if (!inl) - generate_inline (ctx); + generate_runtime_inline (ctx); generate_runtime_source (ctx); + + if (!inl) + generate_inline (ctx); + generate_source (ctx); } |