diff options
Diffstat (limited to 'fluid/code.cxx')
| -rw-r--r-- | fluid/code.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx index 10d62cdf5..02cc439bc 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -254,14 +254,18 @@ void write_cdata(const char *s, int length) { putc('}', code_file); } -void write_c(const char* format,...) { +void vwrite_c(const char* format, va_list args) { if (varused_test) { varused = 1; return; } + vfprintf(code_file, format, args); +} + +void write_c(const char* format,...) { va_list args; va_start(args, format); - vfprintf(code_file, format, args); + vwrite_c(format, args); va_end(args); } |
