@@ -11,8 +11,6 @@
namespace crown
{
-typedef Array<char> Buffer;
-
struct CompileOptions
CompileOptions(Filesystem& fs, File* out, const char* platform)
@@ -44,6 +44,8 @@ struct Array
ALLOCATOR_AWARE;
};
+typedef Array<char> Buffer;
+
/// Dynamic array of objects.
/// @note
/// Calls constructors and destructors, not suitable for performance-critical stuff.
@@ -176,7 +176,6 @@ public:
/// Reads the JSON document from file @a f.
JSONParser(File& f);
- typedef Array<char> Buffer;
JSONParser(Buffer& b);
~JSONParser();
@@ -14,7 +14,6 @@ namespace crown
namespace profiler_globals
char _mem[sizeof(Buffer)];
Buffer* _buffer = NULL;