Parcourir la source

Fix code style

Daniele Bartolini il y a 8 ans
Parent
commit
ecb30eef0a
95 fichiers modifiés avec 142 ajouts et 4 suppressions
  1. 2 0
      src/core/containers/array.h
  2. 1 0
      src/core/containers/event_stream.h
  3. 3 0
      src/core/containers/hash_map.h
  4. 3 0
      src/core/containers/map.h
  5. 1 0
      src/core/containers/queue.h
  6. 3 0
      src/core/containers/sort_map.h
  7. 2 0
      src/core/containers/vector.h
  8. 1 0
      src/core/error/callstack.h
  9. 1 0
      src/core/error/callstack_android.cpp
  10. 1 0
      src/core/error/callstack_linux.cpp
  11. 1 0
      src/core/error/callstack_windows.cpp
  12. 2 0
      src/core/error/error.cpp
  13. 2 0
      src/core/filesystem/path.cpp
  14. 1 0
      src/core/filesystem/path.h
  15. 2 0
      src/core/json/json.cpp
  16. 1 0
      src/core/json/json.h
  17. 1 0
      src/core/json/json_object.h
  18. 2 0
      src/core/json/sjson.cpp
  19. 2 0
      src/core/json/sjson.h
  20. 1 0
      src/core/math/aabb.cpp
  21. 1 0
      src/core/math/aabb.h
  22. 1 0
      src/core/math/color4.h
  23. 2 0
      src/core/math/frustum.h
  24. 1 0
      src/core/math/intersection.h
  25. 1 0
      src/core/math/math_utils.h
  26. 1 0
      src/core/math/matrix3x3.h
  27. 1 0
      src/core/math/matrix4x4.h
  28. 1 0
      src/core/math/plane3.h
  29. 1 0
      src/core/math/quaternion.h
  30. 1 0
      src/core/math/sphere.cpp
  31. 2 0
      src/core/math/sphere.h
  32. 1 0
      src/core/math/vector2.h
  33. 1 0
      src/core/math/vector3.h
  34. 1 0
      src/core/math/vector4.h
  35. 2 0
      src/core/memory/memory.cpp
  36. 3 0
      src/core/memory/memory.h
  37. 1 0
      src/core/memory/temp_allocator.h
  38. 1 0
      src/core/murmur.cpp
  39. 1 0
      src/core/murmur.h
  40. 1 0
      src/core/os.cpp
  41. 1 0
      src/core/os.h
  42. 1 0
      src/core/strings/string_stream.h
  43. 1 0
      src/core/strings/utf8.cpp
  44. 1 0
      src/core/strings/utf8.h
  45. 1 0
      src/device/console_server.h
  46. 1 0
      src/device/display.h
  47. 1 0
      src/device/input_device.cpp
  48. 1 0
      src/device/input_device.h
  49. 2 0
      src/device/log.cpp
  50. 2 0
      src/device/log.h
  51. 2 0
      src/device/main_android.cpp
  52. 2 0
      src/device/main_linux.cpp
  53. 2 0
      src/device/main_windows.cpp
  54. 3 0
      src/device/profiler.cpp
  55. 3 0
      src/device/profiler.h
  56. 1 0
      src/device/window.h
  57. 0 1
      src/lua/lua_api.cpp
  58. 1 0
      src/resource/config_resource.cpp
  59. 1 0
      src/resource/config_resource.h
  60. 2 0
      src/resource/font_resource.cpp
  61. 2 0
      src/resource/font_resource.h
  62. 2 0
      src/resource/level_resource.cpp
  63. 2 0
      src/resource/level_resource.h
  64. 2 0
      src/resource/lua_resource.cpp
  65. 2 0
      src/resource/lua_resource.h
  66. 2 0
      src/resource/material_resource.cpp
  67. 2 0
      src/resource/material_resource.h
  68. 1 0
      src/resource/mesh_resource.cpp
  69. 1 0
      src/resource/mesh_resource.h
  70. 1 0
      src/resource/package_resource.cpp
  71. 1 0
      src/resource/package_resource.h
  72. 3 1
      src/resource/physics_resource.cpp
  73. 3 0
      src/resource/physics_resource.h
  74. 1 0
      src/resource/shader_resource.cpp
  75. 1 0
      src/resource/shader_resource.h
  76. 2 0
      src/resource/sound_resource.cpp
  77. 2 0
      src/resource/sound_resource.h
  78. 3 0
      src/resource/sprite_resource.cpp
  79. 4 0
      src/resource/sprite_resource.h
  80. 1 0
      src/resource/texture_resource.cpp
  81. 1 0
      src/resource/texture_resource.h
  82. 0 1
      src/resource/unit_compiler.cpp
  83. 0 1
      src/resource/unit_compiler.h
  84. 1 0
      src/resource/unit_resource.cpp
  85. 1 0
      src/resource/unit_resource.h
  86. 2 0
      src/world/audio.h
  87. 2 0
      src/world/physics.h
  88. 1 0
      src/world/physics_world.h
  89. 2 0
      src/world/physics_world_bullet.cpp
  90. 1 0
      src/world/physics_world_noop.cpp
  91. 1 0
      src/world/script_world.cpp
  92. 1 0
      src/world/script_world.h
  93. 1 0
      src/world/sound_world.h
  94. 1 0
      src/world/sound_world_al.cpp
  95. 2 0
      src/world/sound_world_noop.cpp

+ 2 - 0
src/core/containers/array.h

@@ -85,6 +85,7 @@ namespace array
 
 
 	/// Returns the last element of the array @a a.
 	/// Returns the last element of the array @a a.
 	template <typename T> const T& back(const Array<T>& a);
 	template <typename T> const T& back(const Array<T>& a);
+
 } // namespace array
 } // namespace array
 
 
 namespace array
 namespace array
@@ -248,6 +249,7 @@ namespace array
 		CE_ASSERT(a._size > 0, "The array is empty");
 		CE_ASSERT(a._size > 0, "The array is empty");
 		return a._data[a._size - 1];
 		return a._data[a._size - 1];
 	}
 	}
+
 } // namespace array
 } // namespace array
 
 
 template <typename T>
 template <typename T>

+ 1 - 0
src/core/containers/event_stream.h

@@ -46,6 +46,7 @@ namespace event_stream
 	{
 	{
 		event_stream::write(s, type, sizeof(T), &event);
 		event_stream::write(s, type, sizeof(T), &event);
 	}
 	}
+
 } // namespace event_stream
 } // namespace event_stream
 
 
 } // namespace crown
 } // namespace crown

+ 3 - 0
src/core/containers/hash_map.h

@@ -43,6 +43,7 @@ namespace hash_map
 	/// @note
 	/// @note
 	/// Calls destructor on the items.
 	/// Calls destructor on the items.
 	template <typename TKey, typename TValue, typename Hash> void clear(HashMap<TKey, TValue, Hash>& m);
 	template <typename TKey, typename TValue, typename Hash> void clear(HashMap<TKey, TValue, Hash>& m);
+
 } // namespace hash_map
 } // namespace hash_map
 
 
 namespace hash_map_internal
 namespace hash_map_internal
@@ -185,6 +186,7 @@ namespace hash_map_internal
 	{
 	{
 		return m._size >= m._capacity * 0.9f;
 		return m._size >= m._capacity * 0.9f;
 	}
 	}
+
 } // namespace hash_map_internal
 } // namespace hash_map_internal
 
 
 namespace hash_map
 namespace hash_map
@@ -262,6 +264,7 @@ namespace hash_map
 
 
 		m._size = 0;
 		m._size = 0;
 	}
 	}
+
 } // namespace hash_map
 } // namespace hash_map
 
 
 template <typename TKey, typename TValue, typename Hash>
 template <typename TKey, typename TValue, typename Hash>

+ 3 - 0
src/core/containers/map.h

@@ -41,6 +41,7 @@ namespace map
 	/// efficiently iterate over the elements (in random order).
 	/// efficiently iterate over the elements (in random order).
 	template <typename TKey, typename TValue> const typename Map<TKey, TValue>::Node* begin(const Map<TKey, TValue>& m);
 	template <typename TKey, typename TValue> const typename Map<TKey, TValue>::Node* begin(const Map<TKey, TValue>& m);
 	template <typename TKey, typename TValue> const typename Map<TKey, TValue>::Node* end(const Map<TKey, TValue>& m);
 	template <typename TKey, typename TValue> const typename Map<TKey, TValue>::Node* end(const Map<TKey, TValue>& m);
+
 } // namespace map
 } // namespace map
 
 
 namespace map_internal
 namespace map_internal
@@ -466,6 +467,7 @@ namespace map_internal
 		#endif
 		#endif
 		return n;
 		return n;
 	}
 	}
+
 } // namespace map_internal
 } // namespace map_internal
 
 
 namespace map
 namespace map
@@ -709,6 +711,7 @@ namespace map
 	{
 	{
 		return vector::end(m._data);
 		return vector::end(m._data);
 	}
 	}
+
 } // namespace map
 } // namespace map
 
 
 template <typename TKey, typename TValue>
 template <typename TKey, typename TValue>

+ 1 - 0
src/core/containers/queue.h

@@ -73,6 +73,7 @@ namespace queue
 	template<typename T> const T& front(const Queue<T>& q);
 	template<typename T> const T& front(const Queue<T>& q);
 	template<typename T> T& back(Queue<T>& q);
 	template<typename T> T& back(Queue<T>& q);
 	template<typename T> const T& back(const Queue<T>& q);
 	template<typename T> const T& back(const Queue<T>& q);
+
 } // namespace queue
 } // namespace queue
 
 
 namespace queue
 namespace queue

+ 3 - 0
src/core/containers/sort_map.h

@@ -44,6 +44,7 @@ namespace sort_map
 	/// efficiently iterate over the elements.
 	/// efficiently iterate over the elements.
 	template <typename TKey, typename TValue, typename Compare> const typename SortMap<TKey, TValue, Compare>::Entry* begin(const SortMap<TKey, TValue, Compare>& m);
 	template <typename TKey, typename TValue, typename Compare> const typename SortMap<TKey, TValue, Compare>::Entry* begin(const SortMap<TKey, TValue, Compare>& m);
 	template <typename TKey, typename TValue, typename Compare> const typename SortMap<TKey, TValue, Compare>::Entry* end(const SortMap<TKey, TValue, Compare>& m);
 	template <typename TKey, typename TValue, typename Compare> const typename SortMap<TKey, TValue, Compare>::Entry* end(const SortMap<TKey, TValue, Compare>& m);
+
 } // namespace sort_map
 } // namespace sort_map
 
 
 namespace sort_map_internal
 namespace sort_map_internal
@@ -90,6 +91,7 @@ namespace sort_map_internal
 
 
 		return result;
 		return result;
 	}
 	}
+
 } // namespace sort_map_internal
 } // namespace sort_map_internal
 
 
 namespace sort_map
 namespace sort_map
@@ -192,6 +194,7 @@ namespace sort_map
 	{
 	{
 		return vector::end(m._data);
 		return vector::end(m._data);
 	}
 	}
+
 } // namespace sort_map
 } // namespace sort_map
 
 
 template <typename TKey, typename TValue, typename Compare>
 template <typename TKey, typename TValue, typename Compare>

+ 2 - 0
src/core/containers/vector.h

@@ -83,6 +83,7 @@ namespace vector
 
 
 	/// Returns the last item of the vector @a v.
 	/// Returns the last item of the vector @a v.
 	template <typename T> const T& back(const Vector<T>& v);
 	template <typename T> const T& back(const Vector<T>& v);
+
 } // namespace vector
 } // namespace vector
 
 
 namespace vector
 namespace vector
@@ -257,6 +258,7 @@ namespace vector
 		CE_ASSERT(v._size > 0, "The vector is empty");
 		CE_ASSERT(v._size > 0, "The vector is empty");
 		return v._data[v._size - 1];
 		return v._data[v._size - 1];
 	}
 	}
+
 } // namespace vector
 } // namespace vector
 
 
 template <typename T>
 template <typename T>

+ 1 - 0
src/core/error/callstack.h

@@ -15,4 +15,5 @@ namespace error
 	void callstack(StringStream& ss);
 	void callstack(StringStream& ss);
 
 
 } // namespace error
 } // namespace error
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/error/callstack_android.cpp

@@ -17,6 +17,7 @@ namespace error
 	{
 	{
 		ss << "Not supported";
 		ss << "Not supported";
 	}
 	}
+
 } // namespace error
 } // namespace error
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/error/callstack_linux.cpp

@@ -87,6 +87,7 @@ namespace error
 		}
 		}
 		free(messages);
 		free(messages);
 	}
 	}
+
 } // namespace error
 } // namespace error
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/error/callstack_windows.cpp

@@ -107,6 +107,7 @@ namespace error
 
 
 		SymCleanup(GetCurrentProcess());
 		SymCleanup(GetCurrentProcess());
 	}
 	}
+
 } // namespace error
 } // namespace error
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/error/error.cpp

@@ -35,5 +35,7 @@ namespace error
 		abort(format, args);
 		abort(format, args);
 		va_end(args);
 		va_end(args);
 	}
 	}
+
 } // namespace error
 } // namespace error
+
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/filesystem/path.cpp

@@ -108,5 +108,7 @@ namespace path
 		if (has_trailing_separator(clean.c_str()))
 		if (has_trailing_separator(clean.c_str()))
 			array::pop_back(clean._data);
 			array::pop_back(clean._data);
 	}
 	}
+
 } // namespace path
 } // namespace path
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/filesystem/path.h

@@ -45,6 +45,7 @@ namespace path
 
 
 	/// Removes unnecessary dots and separators from @a path.
 	/// Removes unnecessary dots and separators from @a path.
 	void reduce(DynamicString& clean, const char* path);
 	void reduce(DynamicString& clean, const char* path);
+
 } // namespace path
 } // namespace path
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/json/json.cpp

@@ -292,5 +292,7 @@ namespace json
 		array::pop_back(json);
 		array::pop_back(json);
 		parse(array::begin(json), object);
 		parse(array::begin(json), object);
 	}
 	}
+
 } // namespace json
 } // namespace json
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/json/json.h

@@ -43,6 +43,7 @@ namespace json
 
 
 	/// Parses the JSON-encoded @a json.
 	/// Parses the JSON-encoded @a json.
 	void parse(Buffer& json, JsonObject& object);
 	void parse(Buffer& json, JsonObject& object);
+
 } // namespace json
 } // namespace json
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/json/json_object.h

@@ -38,6 +38,7 @@ namespace json_object
 	{
 	{
 		return map::end(jo._map);
 		return map::end(jo._map);
 	}
 	}
+
 } // namespace json_object
 } // namespace json_object
 
 
 inline JsonObject::JsonObject(Allocator& a)
 inline JsonObject::JsonObject(Allocator& a)

+ 2 - 0
src/core/json/sjson.cpp

@@ -379,6 +379,7 @@ namespace sjson
 		array::pop_back(json);
 		array::pop_back(json);
 		parse(array::begin(json), object);
 		parse(array::begin(json), object);
 	}
 	}
+
 } // namespace sjson
 } // namespace sjson
 
 
 namespace sjson
 namespace sjson
@@ -488,6 +489,7 @@ namespace sjson
 		sjson::parse_string(json, str);
 		sjson::parse_string(json, str);
 		return guid::parse(str.c_str());
 		return guid::parse(str.c_str());
 	}
 	}
+
 } // namespace json
 } // namespace json
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/json/sjson.h

@@ -45,6 +45,7 @@ namespace sjson
 
 
 	/// Parses the SJSON-encoded @a json.
 	/// Parses the SJSON-encoded @a json.
 	void parse(Buffer& json, JsonObject& object);
 	void parse(Buffer& json, JsonObject& object);
+
 } // namespace sjson
 } // namespace sjson
 
 
 namespace sjson
 namespace sjson
@@ -77,6 +78,7 @@ namespace sjson
 
 
 	/// Returns the string @a json as Guid.
 	/// Returns the string @a json as Guid.
 	Guid parse_guid(const char* json);
 	Guid parse_guid(const char* json);
+
 } // namespace sjson
 } // namespace sjson
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/aabb.cpp

@@ -39,6 +39,7 @@ namespace aabb
 			b.max.z = fmax(b.max.z, bi.max.z);
 			b.max.z = fmax(b.max.z, bi.max.z);
 		}
 		}
 	}
 	}
+
 } // namespace aabb
 } // namespace aabb
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/aabb.h

@@ -182,6 +182,7 @@ namespace aabb
 		s.r = aabb::radius(b);
 		s.r = aabb::radius(b);
 		return s;
 		return s;
 	}
 	}
+
 } // namespace aabb
 } // namespace aabb
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/color4.h

@@ -101,4 +101,5 @@ inline u32 to_abgr(const Color4& c)
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/math/frustum.h

@@ -38,6 +38,7 @@ namespace frustum
 
 
 	/// Returns the AABB enclosing the frustum @a f.
 	/// Returns the AABB enclosing the frustum @a f.
 	AABB to_aabb(const Frustum& f);
 	AABB to_aabb(const Frustum& f);
+
 } // namespace frustum
 } // namespace frustum
 
 
 namespace frustum
 namespace frustum
@@ -110,6 +111,7 @@ namespace frustum
 		aabb::add_points(r, 8, vertices);
 		aabb::add_points(r, 8, vertices);
 		return r;
 		return r;
 	}
 	}
+
 } // namespace frustum
 } // namespace frustum
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/intersection.h

@@ -46,4 +46,5 @@ bool frustum_sphere_intersection(const Frustum& f, const Sphere& s);
 bool frustum_box_intersection(const Frustum& f, const AABB& b);
 bool frustum_box_intersection(const Frustum& f, const AABB& b);
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/math_utils.h

@@ -117,4 +117,5 @@ inline f32 catmull_rom(const f32 p0, const f32 p1, const f32 p2, const f32 p3, f
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/matrix3x3.h

@@ -275,4 +275,5 @@ inline const f32* to_float_ptr(const Matrix3x3& m)
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/matrix4x4.h

@@ -670,4 +670,5 @@ inline const f32* to_float_ptr(const Matrix4x4& m)
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/plane3.h

@@ -56,6 +56,7 @@ namespace plane3
 	{
 	{
 		return dot(p.n, point) + p.d;
 		return dot(p.n, point) + p.d;
 	}
 	}
+
 } // namespace plane3
 } // namespace plane3
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/quaternion.h

@@ -208,4 +208,5 @@ inline Quaternion lerp(const Quaternion& a, const Quaternion& b, f32 t)
 }
 }
 
 
 // @}
 // @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/sphere.cpp

@@ -38,6 +38,7 @@ namespace sphere
 			}
 			}
 		}
 		}
 	}
 	}
+
 } // namespace sphere
 } // namespace sphere
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/math/sphere.h

@@ -33,6 +33,7 @@ namespace sphere
 
 
 	/// Returns whether point @a p is contained into the sphere.
 	/// Returns whether point @a p is contained into the sphere.
 	bool contains_point(const Sphere& s, const Vector3& p);
 	bool contains_point(const Sphere& s, const Vector3& p);
+
 } // namespace sphere
 } // namespace sphere
 
 
 namespace sphere
 namespace sphere
@@ -58,6 +59,7 @@ namespace sphere
 		f32 dist = length_squared(p - s.c);
 		f32 dist = length_squared(p - s.c);
 		return dist < s.r*s.r;
 		return dist < s.r*s.r;
 	}
 	}
+
 } // namespace sphere
 } // namespace sphere
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/vector2.h

@@ -183,4 +183,5 @@ inline const f32* to_float_ptr(const Vector2& a)
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/vector3.h

@@ -212,4 +212,5 @@ inline Vector2 to_vector2(const Vector3& a)
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/math/vector4.h

@@ -217,4 +217,5 @@ inline Vector3 to_vector3(const Vector4& a)
 }
 }
 
 
 /// @}
 /// @}
+
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/core/memory/memory.cpp

@@ -301,6 +301,7 @@ namespace memory
 			return u32(_end - _begin);
 			return u32(_end - _begin);
 		}
 		}
 	};
 	};
+
 } // namespace memory
 } // namespace memory
 
 
 namespace memory_globals
 namespace memory_globals
@@ -325,6 +326,7 @@ namespace memory_globals
 		_default_scratch_allocator->~ScratchAllocator();
 		_default_scratch_allocator->~ScratchAllocator();
 		_default_allocator->~HeapAllocator();
 		_default_allocator->~HeapAllocator();
 	}
 	}
+
 } // namespace memory_globals
 } // namespace memory_globals
 
 
 Allocator& default_allocator()
 Allocator& default_allocator()

+ 3 - 0
src/core/memory/memory.h

@@ -42,6 +42,7 @@ namespace memory
 		ptr->~T();
 		ptr->~T();
 		a.deallocate(ptr);
 		a.deallocate(ptr);
 	}
 	}
+
 } // namespace memory
 } // namespace memory
 
 
 #define ALLOCATOR_AWARE typedef int allocator_aware
 #define ALLOCATOR_AWARE typedef int allocator_aware
@@ -85,7 +86,9 @@ namespace memory_globals
 	/// @note
 	/// @note
 	/// Should be the last call of the program.
 	/// Should be the last call of the program.
 	void shutdown();
 	void shutdown();
+
 } // namespace memory_globals
 } // namespace memory_globals
+
 } // namespace crown
 } // namespace crown
 
 
 /// Allocates memory with @a allocator for the given @a T type
 /// Allocates memory with @a allocator for the given @a T type

+ 1 - 0
src/core/memory/temp_allocator.h

@@ -110,4 +110,5 @@ namespace crown
 		_p += size;
 		_p += size;
 		return result;
 		return result;
 	}
 	}
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/murmur.cpp

@@ -108,4 +108,5 @@ u64 murmur64(const void* key, u32 len, u64 seed)
 
 
 	return h;
 	return h;
 }
 }
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/murmur.h

@@ -11,4 +11,5 @@ namespace crown
 {
 {
 u32 murmur32(const void* key, u32 len, u32 seed);
 u32 murmur32(const void* key, u32 len, u32 seed);
 u64 murmur64(const void* key, u32 len, u64 seed);
 u64 murmur64(const void* key, u32 len, u64 seed);
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/os.cpp

@@ -391,4 +391,5 @@ namespace os
 	}
 	}
 
 
 } // namespace os
 } // namespace os
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/os.h

@@ -76,4 +76,5 @@ namespace os
 	int execute_process(const char* const* argv, StringStream& output);
 	int execute_process(const char* const* argv, StringStream& output);
 
 
 } // namespace os
 } // namespace os
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/strings/string_stream.h

@@ -105,6 +105,7 @@ namespace string_stream
 		snprintf(buf, sizeof(buf), format, val);
 		snprintf(buf, sizeof(buf), format, val);
 		return s << buf;
 		return s << buf;
 	}
 	}
+
 } // namespace string_stream
 } // namespace string_stream
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/strings/utf8.cpp

@@ -40,6 +40,7 @@ namespace utf8
 		*state = utf8d[256 + *state*16 + type];
 		*state = utf8d[256 + *state*16 + type];
 		return *state;
 		return *state;
 	}
 	}
+
 } // namespace utf8
 } // namespace utf8
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/core/strings/utf8.h

@@ -21,4 +21,5 @@ namespace utf8
 	u32 decode(u32* state, u32* codep, u32 byte);
 	u32 decode(u32* state, u32* codep, u32 byte);
 
 
 } // namespace utf8
 } // namespace utf8
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/device/console_server.h

@@ -63,6 +63,7 @@ namespace console_server_globals
 	void init();
 	void init();
 
 
 	void shutdown();
 	void shutdown();
+
 } // namespace console_server_globals
 } // namespace console_server_globals
 
 
 ConsoleServer* console_server();
 ConsoleServer* console_server();

+ 1 - 0
src/device/display.h

@@ -45,6 +45,7 @@ namespace display
 
 
 	/// Destroys the display @a d.
 	/// Destroys the display @a d.
 	void destroy(Allocator& a, Display& d);
 	void destroy(Allocator& a, Display& d);
+
 } // namespace display
 } // namespace display
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/device/input_device.cpp

@@ -180,6 +180,7 @@ namespace input_device
 	{
 	{
 		a.deallocate(&id);
 		a.deallocate(&id);
 	}
 	}
+
 } // namespace input_device
 } // namespace input_device
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/device/input_device.h

@@ -89,6 +89,7 @@ namespace input_device
 
 
 	/// Destroys the input device @a id.
 	/// Destroys the input device @a id.
 	void destroy(Allocator& a, InputDevice& id);
 	void destroy(Allocator& a, InputDevice& id);
+
 } // namespace input_device
 } // namespace input_device
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/device/log.cpp

@@ -90,5 +90,7 @@ namespace log_internal
 		logx(sev, system, msg, args);
 		logx(sev, system, msg, args);
 		va_end(args);
 		va_end(args);
 	}
 	}
+
 } // namespace log
 } // namespace log
+
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/device/log.h

@@ -33,7 +33,9 @@ namespace log_internal
 
 
 	void logx(LogSeverity::Enum sev, System system, const char* msg, va_list args);
 	void logx(LogSeverity::Enum sev, System system, const char* msg, va_list args);
 	void logx(LogSeverity::Enum sev, System system, const char* msg, ...);
 	void logx(LogSeverity::Enum sev, System system, const char* msg, ...);
+
 } // namespace log_internal
 } // namespace log_internal
+
 } // namespace crown
 } // namespace crown
 
 
 #define logiv(system, msg, va_list) crown::log_internal::logx(crown::LogSeverity::LOG_INFO, system, msg, va_list)
 #define logiv(system, msg, va_list) crown::log_internal::logx(crown::LogSeverity::LOG_INFO, system, msg, va_list)

+ 2 - 0
src/device/main_android.cpp

@@ -290,6 +290,7 @@ namespace window
 	{
 	{
 		CE_DELETE(a, &w);
 		CE_DELETE(a, &w);
 	}
 	}
+
 } // namespace window
 } // namespace window
 
 
 struct DisplayAndroid : public Display
 struct DisplayAndroid : public Display
@@ -314,6 +315,7 @@ namespace display
 	{
 	{
 		CE_DELETE(a, &d);
 		CE_DELETE(a, &d);
 	}
 	}
+
 } // namespace display
 } // namespace display
 
 
 static AndroidDevice s_advc;
 static AndroidDevice s_advc;

+ 2 - 0
src/device/main_linux.cpp

@@ -669,6 +669,7 @@ namespace window
 	{
 	{
 		CE_DELETE(a, &w);
 		CE_DELETE(a, &w);
 	}
 	}
+
 } // namespace window
 } // namespace window
 
 
 struct DisplayXRandr : public Display
 struct DisplayXRandr : public Display
@@ -720,6 +721,7 @@ namespace display
 	{
 	{
 		CE_DELETE(a, &d);
 		CE_DELETE(a, &d);
 	}
 	}
+
 } // namespace display
 } // namespace display
 
 
 bool next_event(OsEvent& ev)
 bool next_event(OsEvent& ev)

+ 2 - 0
src/device/main_windows.cpp

@@ -658,6 +658,7 @@ namespace window
 	{
 	{
 		CE_DELETE(a, &w);
 		CE_DELETE(a, &w);
 	}
 	}
+
 } // namespace window
 } // namespace window
 
 
 struct DisplayWin : public Display
 struct DisplayWin : public Display
@@ -682,6 +683,7 @@ namespace display
 	{
 	{
 		CE_DELETE(a, &d);
 		CE_DELETE(a, &d);
 	}
 	}
+
 } // namespace display
 } // namespace display
 
 
 bool next_event(OsEvent& ev)
 bool next_event(OsEvent& ev)

+ 3 - 0
src/device/profiler.cpp

@@ -32,6 +32,7 @@ namespace profiler_globals
 	{
 	{
 		return array::begin(*_buffer);
 		return array::begin(*_buffer);
 	}
 	}
+
 } // namespace profiler_globals
 } // namespace profiler_globals
 
 
 namespace profiler
 namespace profiler
@@ -116,6 +117,7 @@ namespace profiler
 
 
 		push(ProfilerEventType::DEALLOCATE_MEMORY, ev);
 		push(ProfilerEventType::DEALLOCATE_MEMORY, ev);
 	}
 	}
+
 } // namespace profiler
 } // namespace profiler
 
 
 namespace profiler_globals
 namespace profiler_globals
@@ -132,4 +134,5 @@ namespace profiler_globals
 		array::clear(*_buffer);
 		array::clear(*_buffer);
 	}
 	}
 }
 }
+
 } // namespace crown
 } // namespace crown

+ 3 - 0
src/device/profiler.h

@@ -90,6 +90,7 @@ namespace profiler
 
 
 	/// Records a memory deallocation of @a size with the given @a name.
 	/// Records a memory deallocation of @a size with the given @a name.
 	void deallocate_memory(const char* name, u32 size);
 	void deallocate_memory(const char* name, u32 size);
+
 } // namespace profiler
 } // namespace profiler
 
 
 namespace profiler_globals
 namespace profiler_globals
@@ -100,7 +101,9 @@ namespace profiler_globals
 	const char* buffer();
 	const char* buffer();
 	void flush();
 	void flush();
 	void clear();
 	void clear();
+
 } // namespace profiler_globals
 } // namespace profiler_globals
+
 } // namespace crown
 } // namespace crown
 
 
 #if CROWN_DEBUG
 #if CROWN_DEBUG

+ 1 - 0
src/device/window.h

@@ -67,6 +67,7 @@ namespace window
 
 
 	/// Destroys the window @a w.
 	/// Destroys the window @a w.
 	void destroy(Allocator& a, Window& w);
 	void destroy(Allocator& a, Window& w);
+
 } // namespace window
 } // namespace window
 
 
 } // namespace crown
 } // namespace crown

+ 0 - 1
src/lua/lua_api.cpp

@@ -2237,7 +2237,6 @@ static int physics_world_actor_is_nonkinematic(lua_State* L)
 	return 1;
 	return 1;
 }
 }
 
 
-
 static int physics_world_actor_linear_damping(lua_State* L)
 static int physics_world_actor_linear_damping(lua_State* L)
 {
 {
 	LuaStack stack(L);
 	LuaStack stack(L);

+ 1 - 0
src/resource/config_resource.cpp

@@ -53,6 +53,7 @@ namespace config_resource_internal
 	{
 	{
 		a.deallocate(resource);
 		a.deallocate(resource);
 	}
 	}
+
 } // namespace config_resource_internal
 } // namespace config_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/config_resource.h

@@ -17,6 +17,7 @@ namespace config_resource_internal
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
 	void* load(File& file, Allocator& a);
 	void* load(File& file, Allocator& a);
 	void unload(Allocator& allocator, void* resource);
 	void unload(Allocator& allocator, void* resource);
+
 } // namespace config_resource_internal
 } // namespace config_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/font_resource.cpp

@@ -93,6 +93,7 @@ namespace font_resource_internal
 			opts.write(_glyphs[i].gd.x_advance);
 			opts.write(_glyphs[i].gd.x_advance);
 		}
 		}
 	}
 	}
+
 } // namespace font_resource_internal
 } // namespace font_resource_internal
 
 
 namespace font_resource
 namespace font_resource
@@ -114,6 +115,7 @@ namespace font_resource
 		CE_FATAL("Glyph not found");
 		CE_FATAL("Glyph not found");
 		return NULL;
 		return NULL;
 	}
 	}
+
 } // namespace font_resource
 } // namespace font_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/font_resource.h

@@ -36,12 +36,14 @@ typedef u32 CodePoint;
 namespace font_resource_internal
 namespace font_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace font_resource_internal
 } // namespace font_resource_internal
 
 
 namespace font_resource
 namespace font_resource
 {
 {
 	/// Returns the glyph for the code point @a cp.
 	/// Returns the glyph for the code point @a cp.
 	const GlyphData* get_glyph(const FontResource* fr, CodePoint cp);
 	const GlyphData* get_glyph(const FontResource* fr, CodePoint cp);
+
 } // namespace font_resource
 } // namespace font_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/level_resource.cpp

@@ -87,6 +87,7 @@ namespace level_resource_internal
 			opts.write(sounds[i]._pad[2]);
 			opts.write(sounds[i]._pad[2]);
 		}
 		}
 	}
 	}
+
 } // namespace level_resource_internal
 } // namespace level_resource_internal
 
 
 namespace level_resource
 namespace level_resource
@@ -107,6 +108,7 @@ namespace level_resource
 		const LevelSound* begin = (LevelSound*)((char*)lr + lr->sounds_offset);
 		const LevelSound* begin = (LevelSound*)((char*)lr + lr->sounds_offset);
 		return &begin[i];
 		return &begin[i];
 	}
 	}
+
 } // namespace level_resource
 } // namespace level_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/level_resource.h

@@ -35,6 +35,7 @@ struct LevelSound
 namespace level_resource_internal
 namespace level_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace level_resource_internal
 } // namespace level_resource_internal
 
 
 namespace level_resource
 namespace level_resource
@@ -47,6 +48,7 @@ namespace level_resource
 
 
 	/// Returns the sound @a i.
 	/// Returns the sound @a i.
 	const LevelSound* get_sound(const LevelResource* lr, u32 i);
 	const LevelSound* get_sound(const LevelResource* lr, u32 i);
+
 } // namespace level_resource
 } // namespace level_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/lua_resource.cpp

@@ -67,6 +67,7 @@ namespace lua_resource_internal
 		opts.write(lr.size);
 		opts.write(lr.size);
 		opts.write(blob);
 		opts.write(blob);
 	}
 	}
+
 } // namespace lua_resource_internal
 } // namespace lua_resource_internal
 
 
 namespace lua_resource
 namespace lua_resource
@@ -75,6 +76,7 @@ namespace lua_resource
 	{
 	{
 		return (char*)&lr[1];
 		return (char*)&lr[1];
 	}
 	}
+
 } // namespace lua_resource
 } // namespace lua_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/lua_resource.h

@@ -22,12 +22,14 @@ struct LuaResource
 namespace lua_resource_internal
 namespace lua_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace lua_resource_internal
 } // namespace lua_resource_internal
 
 
 namespace lua_resource
 namespace lua_resource
 {
 {
 	/// Returns the lua program.
 	/// Returns the lua program.
 	const char* program(const LuaResource* lr);
 	const char* program(const LuaResource* lr);
+
 } // namespace lua_resource
 } // namespace lua_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/material_resource.cpp

@@ -254,6 +254,7 @@ namespace material_resource_internal
 	{
 	{
 		device()->_material_manager->unload(a, res);
 		device()->_material_manager->unload(a, res);
 	}
 	}
+
 } // namespace material_resource_internal
 } // namespace material_resource_internal
 
 
 namespace material_resource
 namespace material_resource
@@ -310,6 +311,7 @@ namespace material_resource
 		TextureData* td = get_texture_data(mr, i);
 		TextureData* td = get_texture_data(mr, i);
 		return (TextureHandle*) (dynamic + td->data_offset);
 		return (TextureHandle*) (dynamic + td->data_offset);
 	}
 	}
+
 } // namespace material_resource
 } // namespace material_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/material_resource.h

@@ -74,6 +74,7 @@ namespace material_resource_internal
 	void online(StringId64 id, ResourceManager& rm);
 	void online(StringId64 id, ResourceManager& rm);
 	void offline(StringId64 id, ResourceManager& rm);
 	void offline(StringId64 id, ResourceManager& rm);
 	void unload(Allocator& a, void* res);
 	void unload(Allocator& a, void* res);
+
 } // namespace material_resource_internal
 } // namespace material_resource_internal
 
 
 namespace material_resource
 namespace material_resource
@@ -86,6 +87,7 @@ namespace material_resource
 	UniformHandle* get_uniform_handle(const MaterialResource* mr, u32 i, char* dynamic);
 	UniformHandle* get_uniform_handle(const MaterialResource* mr, u32 i, char* dynamic);
 	UniformHandle* get_uniform_handle_by_name(const MaterialResource* mr, StringId32 name, char* dynamic);
 	UniformHandle* get_uniform_handle_by_name(const MaterialResource* mr, StringId32 name, char* dynamic);
 	TextureHandle* get_texture_handle(const MaterialResource* mr, u32 i, char* dynamic);
 	TextureHandle* get_texture_handle(const MaterialResource* mr, u32 i, char* dynamic);
+
 } // namespace material_resource
 } // namespace material_resource
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/mesh_resource.cpp

@@ -404,6 +404,7 @@ namespace mesh_resource_internal
 		}
 		}
 		CE_DELETE(a, (MeshResource*)res);
 		CE_DELETE(a, (MeshResource*)res);
 	}
 	}
+
 } // namespace mesh_resource_internal
 } // namespace mesh_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/mesh_resource.h

@@ -70,6 +70,7 @@ namespace mesh_resource_internal
 	void online(StringId64 /*id*/, ResourceManager& /*rm*/);
 	void online(StringId64 /*id*/, ResourceManager& /*rm*/);
 	void offline(StringId64 /*id*/, ResourceManager& /*rm*/);
 	void offline(StringId64 /*id*/, ResourceManager& /*rm*/);
 	void unload(Allocator& a, void* res);
 	void unload(Allocator& a, void* res);
+
 } // namespace mesh_resource_internal
 } // namespace mesh_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/package_resource.cpp

@@ -119,6 +119,7 @@ namespace package_resource_internal
 	{
 	{
 		CE_DELETE(a, (PackageResource*)resource);
 		CE_DELETE(a, (PackageResource*)resource);
 	}
 	}
+
 } // namespace package_resource_internal
 } // namespace package_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/package_resource.h

@@ -52,6 +52,7 @@ namespace package_resource_internal
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
 	void* load(File& file, Allocator& a);
 	void* load(File& file, Allocator& a);
 	void unload(Allocator& allocator, void* resource);
 	void unload(Allocator& allocator, void* resource);
+
 } // namespace package_resource_internal
 } // namespace package_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 3 - 1
src/resource/physics_resource.cpp

@@ -189,7 +189,6 @@ namespace physics_resource_internal
 		sjson::parse_array(indices["data"], indices_data);
 		sjson::parse_array(indices["data"], indices_data);
 		sjson::parse_array(indices_data[0], position_indices);
 		sjson::parse_array(indices_data[0], position_indices);
 
 
-
 		Array<Vector3> points(default_allocator());
 		Array<Vector3> points(default_allocator());
 		for (u32 i = 0; i < array::size(positions); i += 3)
 		for (u32 i = 0; i < array::size(positions); i += 3)
 		{
 		{
@@ -305,6 +304,7 @@ namespace physics_resource_internal
 		array::push(buf, (char*)&jd, sizeof(jd));
 		array::push(buf, (char*)&jd, sizeof(jd));
 		return buf;
 		return buf;
 	}
 	}
+
 } // namespace physics_resource_internal
 } // namespace physics_resource_internal
 
 
 namespace physics_config_resource_internal
 namespace physics_config_resource_internal
@@ -587,6 +587,7 @@ namespace physics_config_resource_internal
 			opts.write(cfc._filters[i].mask);
 			opts.write(cfc._filters[i].mask);
 		}
 		}
 	}
 	}
+
 } // namespace physics_config_resource_internal
 } // namespace physics_config_resource_internal
 
 
 namespace physics_config_resource
 namespace physics_config_resource
@@ -642,6 +643,7 @@ namespace physics_config_resource
 		CE_FATAL("Filter not found");
 		CE_FATAL("Filter not found");
 		return NULL;
 		return NULL;
 	}
 	}
+
 } // namespace physics_config_resource
 } // namespace physics_config_resource
 
 
 } // namespace crown
 } // namespace crown

+ 3 - 0
src/resource/physics_resource.h

@@ -22,6 +22,7 @@ namespace physics_resource_internal
 	Buffer compile_collider(const char* json, CompileOptions& opts);
 	Buffer compile_collider(const char* json, CompileOptions& opts);
 	Buffer compile_actor(const char* json, CompileOptions& opts);
 	Buffer compile_actor(const char* json, CompileOptions& opts);
 	Buffer compile_joint(const char* json, CompileOptions& opts);
 	Buffer compile_joint(const char* json, CompileOptions& opts);
+
 } // namespace physics_resource_internal
 } // namespace physics_resource_internal
 
 
 struct PhysicsConfigResource
 struct PhysicsConfigResource
@@ -77,6 +78,7 @@ struct PhysicsConfigActor
 namespace physics_config_resource_internal
 namespace physics_config_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace physics_config_resource_internal
 } // namespace physics_config_resource_internal
 
 
 namespace physics_config_resource
 namespace physics_config_resource
@@ -92,6 +94,7 @@ namespace physics_config_resource
 
 
 	/// Returns the collision filter @a name.
 	/// Returns the collision filter @a name.
 	const PhysicsCollisionFilter* filter(const PhysicsConfigResource* pcr, StringId32 name);
 	const PhysicsCollisionFilter* filter(const PhysicsConfigResource* pcr, StringId32 name);
+
 } // namespace physics_config_resource
 } // namespace physics_config_resource
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/shader_resource.cpp

@@ -1256,6 +1256,7 @@ namespace shader_resource_internal
 	{
 	{
 		device()->_shader_manager->unload(a, res);
 		device()->_shader_manager->unload(a, res);
 	}
 	}
+
 } // namespace shader_resource_internal
 } // namespace shader_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/shader_resource.h

@@ -41,6 +41,7 @@ namespace shader_resource_internal
 	void online(StringId64 id, ResourceManager& rm);
 	void online(StringId64 id, ResourceManager& rm);
 	void offline(StringId64 id, ResourceManager& rm);
 	void offline(StringId64 id, ResourceManager& rm);
 	void unload(Allocator& a, void* res);
 	void unload(Allocator& a, void* res);
+
 } // namespace shader_resource_internal
 } // namespace shader_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/sound_resource.cpp

@@ -70,6 +70,7 @@ namespace sound_resource_internal
 
 
 		opts.write(wavdata, wav->data_size);
 		opts.write(wavdata, wav->data_size);
 	}
 	}
+
 } // namespace sound_resource_internal
 } // namespace sound_resource_internal
 
 
 namespace sound_resource
 namespace sound_resource
@@ -78,6 +79,7 @@ namespace sound_resource
 	{
 	{
 		return (char*)&sr[1];
 		return (char*)&sr[1];
 	}
 	}
+
 } // namespace sound_resource
 } // namespace sound_resource
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/resource/sound_resource.h

@@ -38,12 +38,14 @@ struct SoundResource
 namespace sound_resource_internal
 namespace sound_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace	sound_resource_internal
 } // namespace	sound_resource_internal
 
 
 namespace sound_resource
 namespace sound_resource
 {
 {
 	/// Returns the sound data.
 	/// Returns the sound data.
 	const char* data(const SoundResource* sr);
 	const char* data(const SoundResource* sr);
+
 } // namespace sound_resource
 } // namespace sound_resource
 
 
 } // namespace crown
 } // namespace crown

+ 3 - 0
src/resource/sprite_resource.cpp

@@ -132,6 +132,7 @@ namespace sprite_resource_internal
 		for (u32 i = 0; i < array::size(vertices); i++)
 		for (u32 i = 0; i < array::size(vertices); i++)
 			opts.write(vertices[i]);
 			opts.write(vertices[i]);
 	}
 	}
+
 } // namespace sprite_resource_internal
 } // namespace sprite_resource_internal
 
 
 namespace sprite_resource
 namespace sprite_resource
@@ -177,6 +178,7 @@ namespace sprite_animation_resource_internal
 		for (u32 i = 0; i < array::size(frames); i++)
 		for (u32 i = 0; i < array::size(frames); i++)
 			opts.write(frames[i]);
 			opts.write(frames[i]);
 	}
 	}
+
 } // namespace sprite_animation_resource_internal
 } // namespace sprite_animation_resource_internal
 
 
 namespace sprite_animation_resource
 namespace sprite_animation_resource
@@ -185,6 +187,7 @@ namespace sprite_animation_resource
 	{
 	{
 		return (u32*)&sar[1];
 		return (u32*)&sar[1];
 	}
 	}
+
 } // namespace sprite_animation_resource
 } // namespace sprite_animation_resource
 
 
 } // namespace crown
 } // namespace crown

+ 4 - 0
src/resource/sprite_resource.h

@@ -26,12 +26,14 @@ struct SpriteResource
 namespace sprite_resource_internal
 namespace sprite_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace sprite_resource_internal
 } // namespace sprite_resource_internal
 
 
 namespace sprite_resource
 namespace sprite_resource
 {
 {
 	/// Returns the frame data for the frame @a i.
 	/// Returns the frame data for the frame @a i.
 	const f32* frame_data(const SpriteResource* sr, u32 i);
 	const f32* frame_data(const SpriteResource* sr, u32 i);
+
 } // namespace sprite_resource
 } // namespace sprite_resource
 
 
 struct SpriteAnimationResource
 struct SpriteAnimationResource
@@ -44,12 +46,14 @@ struct SpriteAnimationResource
 namespace sprite_animation_resource_internal
 namespace sprite_animation_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace sprite_animation_resource_internal
 } // namespace sprite_animation_resource_internal
 
 
 namespace sprite_animation_resource
 namespace sprite_animation_resource
 {
 {
 	/// Returns the frames of the sprite animation @a sar.
 	/// Returns the frames of the sprite animation @a sar.
 	const u32* frames(const SpriteAnimationResource* sar);
 	const u32* frames(const SpriteAnimationResource* sar);
+
 } // namespace sprite_animation_resource
 } // namespace sprite_animation_resource
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/texture_resource.cpp

@@ -120,6 +120,7 @@ namespace texture_resource_internal
 	{
 	{
 		a.deallocate(resource);
 		a.deallocate(resource);
 	}
 	}
+
 } // namespace texture_resource_internal
 } // namespace texture_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/texture_resource.h

@@ -27,6 +27,7 @@ namespace texture_resource_internal
 	void offline(StringId64 id, ResourceManager& rm);
 	void offline(StringId64 id, ResourceManager& rm);
 	void online(StringId64 id, ResourceManager& rm);
 	void online(StringId64 id, ResourceManager& rm);
 	void unload(Allocator& a, void* resource);
 	void unload(Allocator& a, void* resource);
+
 } // namespace texture_resource_internal
 } // namespace texture_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 0 - 1
src/resource/unit_compiler.cpp

@@ -280,7 +280,6 @@ void UnitCompiler::compile_unit_from_json(const char* json)
 		sjson::parse(d, prefabs[i + 1]);
 		sjson::parse(d, prefabs[i + 1]);
 	}
 	}
 
 
-
 	JsonObject& prefab_root = prefabs[num_prefabs - 1];
 	JsonObject& prefab_root = prefabs[num_prefabs - 1];
 	JsonObject prefab_root_components(ta);
 	JsonObject prefab_root_components(ta);
 	sjson::parse(prefab_root["components"], prefab_root_components);
 	sjson::parse(prefab_root["components"], prefab_root_components);

+ 0 - 1
src/resource/unit_compiler.h

@@ -67,7 +67,6 @@ public:
 	void compile_unit_from_json(const char* json);
 	void compile_unit_from_json(const char* json);
 	void compile_multiple_units(const char* json);
 	void compile_multiple_units(const char* json);
 
 
-
 	Buffer blob();
 	Buffer blob();
 };
 };
 
 

+ 1 - 0
src/resource/unit_resource.cpp

@@ -24,6 +24,7 @@ namespace unit_resource_internal
 
 
 		opts.write(uc.blob());
 		opts.write(uc.blob());
 	}
 	}
+
 } // namespace unit_resource_internal
 } // namespace unit_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/resource/unit_resource.h

@@ -31,6 +31,7 @@ struct ComponentData
 namespace unit_resource_internal
 namespace unit_resource_internal
 {
 {
 	void compile(const char* path, CompileOptions& opts);
 	void compile(const char* path, CompileOptions& opts);
+
 } // namespace unit_resource_internal
 } // namespace unit_resource_internal
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/world/audio.h

@@ -18,5 +18,7 @@ namespace audio_globals
 
 
 	/// It should reverse the actions performed by audio_globals::init().
 	/// It should reverse the actions performed by audio_globals::init().
 	void shutdown();
 	void shutdown();
+
 } // namespace audio_globals
 } // namespace audio_globals
+
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/world/physics.h

@@ -20,5 +20,7 @@ namespace physics_globals
 
 
 	/// It should reverse the actions performed by physics_globals::init().
 	/// It should reverse the actions performed by physics_globals::init().
 	void shutdown(Allocator& a);
 	void shutdown(Allocator& a);
+
 } // namespace physics_globals
 } // namespace physics_globals
+
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/world/physics_world.h

@@ -194,6 +194,7 @@ namespace physics_world
 {
 {
 	PhysicsWorld* create(Allocator& a, ResourceManager& rm, UnitManager& um, DebugLine& dl);
 	PhysicsWorld* create(Allocator& a, ResourceManager& rm, UnitManager& um, DebugLine& dl);
 	void destroy(Allocator& a, PhysicsWorld* pw);
 	void destroy(Allocator& a, PhysicsWorld* pw);
+
 } // namespace physics_world
 } // namespace physics_world
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/world/physics_world_bullet.cpp

@@ -72,6 +72,7 @@ namespace physics_globals
 		CE_DELETE(a, _bt_dispatcher);
 		CE_DELETE(a, _bt_dispatcher);
 		CE_DELETE(a, _bt_configuration);
 		CE_DELETE(a, _bt_configuration);
 	}
 	}
+
 } // namespace physics_globals
 } // namespace physics_globals
 
 
 static btVector3 to_btVector3(const Vector3& v)
 static btVector3 to_btVector3(const Vector3& v)
@@ -1113,6 +1114,7 @@ namespace physics_world
 	{
 	{
 		CE_DELETE(a, pw);
 		CE_DELETE(a, pw);
 	}
 	}
+
 } // namespace physics_world
 } // namespace physics_world
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/world/physics_world_noop.cpp

@@ -20,6 +20,7 @@ namespace physics_globals
 	void shutdown()
 	void shutdown()
 	{
 	{
 	}
 	}
+
 } // namespace physics_globals
 } // namespace physics_globals
 
 
 struct PhysicsWorldNoop : public PhysicsWorld
 struct PhysicsWorldNoop : public PhysicsWorld

+ 1 - 0
src/world/script_world.cpp

@@ -129,6 +129,7 @@ namespace script_world
 			stack.call(0);
 			stack.call(0);
 		}
 		}
 	}
 	}
+
 } // namespace script_world
 } // namespace script_world
 
 
 ScriptWorld::ScriptWorld(Allocator& a, UnitManager& um, ResourceManager& rm, LuaEnvironment& le, World& w)
 ScriptWorld::ScriptWorld(Allocator& a, UnitManager& um, ResourceManager& rm, LuaEnvironment& le, World& w)

+ 1 - 0
src/world/script_world.h

@@ -54,6 +54,7 @@ namespace script_world
 
 
 	/// Calls the update function on all scripts.
 	/// Calls the update function on all scripts.
 	void update(ScriptWorld& sw, f32 dt);
 	void update(ScriptWorld& sw, f32 dt);
+
 } // namespace script_world
 } // namespace script_world
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/world/sound_world.h

@@ -66,6 +66,7 @@ namespace sound_world
 {
 {
 	SoundWorld* create(Allocator& a);
 	SoundWorld* create(Allocator& a);
 	void destroy(Allocator& a, SoundWorld* sw);
 	void destroy(Allocator& a, SoundWorld* sw);
+
 } // namespace sound_world
 } // namespace sound_world
 
 
 } // namespace crown
 } // namespace crown

+ 1 - 0
src/world/sound_world_al.cpp

@@ -410,6 +410,7 @@ namespace sound_world
 	{
 	{
 		CE_DELETE(a, sw);
 		CE_DELETE(a, sw);
 	}
 	}
+
 } // namespace sound_world
 } // namespace sound_world
 
 
 } // namespace crown
 } // namespace crown

+ 2 - 0
src/world/sound_world_noop.cpp

@@ -98,7 +98,9 @@ namespace sound_world
 	{
 	{
 		CE_DELETE(a, sw);
 		CE_DELETE(a, sw);
 	}
 	}
+
 } // namespace sound_world
 } // namespace sound_world
+
 } // namespace crown
 } // namespace crown
 
 
 #endif // SOUND_WORLD_NOOP
 #endif // SOUND_WORLD_NOOP