| commit | 9d6e0b29add607669e440085f1fc60cd434dc987 | [log] [tgz] |
|---|---|---|
| author | Christopher Wiley <wiley@google.com> | Fri Nov 13 12:18:16 2015 -0800 |
| committer | Christopher Wiley <wiley@google.com> | Fri Nov 13 12:20:12 2015 -0800 |
| tree | 45657eb6db32a5bf492ba8f51ef80a45d8f7e9db | |
| parent | 864bc0936d95410b06a3709e1559c884258bc52c [diff] [blame] |
Remove generated code on IO errors Bug: 25026025 Test: unit tests Change-Id: Ice5d823102c742d546386f1ad71ef63a48c90820
diff --git a/code_writer.h b/code_writer.h index 0519d74..7fac542 100644 --- a/code_writer.h +++ b/code_writer.h
@@ -32,6 +32,7 @@ // Write a formatted string to this writer in the usual printf sense. // Returns false on error. virtual bool Write(const char* format, ...) = 0; + virtual bool Close() = 0; virtual ~CodeWriter() = default; }; // class CodeWriter