Daniele Bartolini 8 лет назад
Родитель
Сommit
ec506fa2ba

+ 2 - 1
src/core/guid.cpp

@@ -69,6 +69,7 @@ namespace guid
 			);
 		str.set(buf, sizeof(buf)-1);
 	}
-}
+
+} // namespace guid
 
 } // namespace crown

+ 2 - 1
src/core/guid.h

@@ -38,7 +38,8 @@ namespace guid
 
 	/// Fills @a str with the string representation of the @a guid.
 	void to_string(const Guid& guid, DynamicString& str);
-}
+
+} // namespace guid
 
 /// Returns whether Guid @a and @b are equal.
 inline bool operator==(const Guid& a, const Guid& b)

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

@@ -52,7 +52,8 @@ namespace aabb
 
 	/// Returns the sphere enclosing the box @a b.
 	Sphere to_sphere(const AABB& b);
-}
+
+} // namespace aabb
 
 namespace aabb
 {

+ 1 - 0
src/core/network/socket.cpp

@@ -34,6 +34,7 @@ namespace
 		return WSAGetLastError();
 #endif
 	}
+
 }
 
 namespace socket_internal

+ 2 - 1
src/device/console_server.cpp

@@ -165,7 +165,8 @@ namespace console_server_globals
 		CE_DELETE(default_allocator(), _console_server);
 		_console_server = NULL;
 	}
-}
+
+} // namespace console_server_globals
 
 ConsoleServer* console_server()
 {

+ 1 - 2
src/device/device_event_queue.h

@@ -69,14 +69,13 @@ union OsEvent
 	ResolutionEvent resolution;
 };
 
-#define MAX_OS_EVENTS 4096
-
 /// Single Producer Single Consumer event queue.
 /// Used only to pass events from os thread to main thread.
 struct DeviceEventQueue
 {
 	AtomicInt _tail;
 	AtomicInt _head;
+#define MAX_OS_EVENTS 4096
 	OsEvent _queue[MAX_OS_EVENTS];
 
 	DeviceEventQueue()

+ 2 - 1
src/device/profiler.cpp

@@ -133,6 +133,7 @@ namespace profiler_globals
 	{
 		array::clear(*_buffer);
 	}
-}
+
+} // namespace profiler_globals
 
 } // namespace crown

+ 2 - 1
src/resource/sprite_resource.cpp

@@ -141,7 +141,8 @@ namespace sprite_resource
 	{
 		return ((f32*)&sr[1]) + 16*i;
 	}
-}
+
+} // namespace sprite_resource
 
 namespace sprite_animation_resource_internal
 {

+ 2 - 1
src/world/sound_world_al.cpp

@@ -73,7 +73,8 @@ namespace audio_globals
 		alcDestroyContext(s_al_context);
 	    alcCloseDevice(s_al_device);
 	}
-}
+
+} // namespace audio_globals
 
 struct SoundInstance
 {

+ 2 - 1
src/world/sound_world_noop.cpp

@@ -22,7 +22,8 @@ namespace audio_globals
 	void shutdown()
 	{
 	}
-}
+
+} // namespace audio_globals
 
 class SoundWorldNoop : public SoundWorld
 {