summaryrefslogtreecommitdiff
path: root/ZAPD/OutputFormatter.h
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-04-28 05:19:50 -0400
committerGitHub <noreply@github.com>2021-04-28 05:19:50 -0400
commitb9120803e6094a54192ed67d9585ab046101c816 (patch)
treedf259449343cd0c5230dd2a5e1e9d5293d20c563 /ZAPD/OutputFormatter.h
parent50ad2fe786af4cf66998028a08c767e16a416a60 (diff)
Use OutputFormatter for every C and H file, to improve the generated output (#122)
* Small changes in collision * Use outputformatter to write C files * Outputformatter for .h files * Use more fs::path * Use gfxd_udata_set and gfxd_udata_get instead of an instance * Fix merge issues and warnings * run format
Diffstat (limited to 'ZAPD/OutputFormatter.h')
-rw-r--r--ZAPD/OutputFormatter.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ZAPD/OutputFormatter.h b/ZAPD/OutputFormatter.h
index 360a113..b887b42 100644
--- a/ZAPD/OutputFormatter.h
+++ b/ZAPD/OutputFormatter.h
@@ -32,9 +32,10 @@ private:
public:
OutputFormatter(uint32_t tabSize = 4, uint32_t defaultIndent = 4, uint32_t lineLimit = 120);
- int (*StaticWriter())(const char* buf, int count); //Must be `int` due to libgfxd
+ int (*StaticWriter())(const char* buf, int count); // Must be `int` due to libgfxd
- int Write(const char* buf, uint32_t count);
+ int Write(const char* buf, int count);
+ int Write(const std::string& buf);
std::string GetOutput();
}; \ No newline at end of file