This is an automated email from the git hooks/post-receive script. thansen pushed a commit to branch master in repository aseprite.
commit 9df732e27b09f2b9eb0c72228fdb5a97954e5460 Author: David Capello <[email protected]> Date: Fri Nov 7 10:30:02 2014 -0300 Add gfx/rect_io.h --- src/gfx/rect_io.h | 27 +++++++++++++++++++++++++++ src/gfx/rect_tests.cpp | 16 ++-------------- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/src/gfx/rect_io.h b/src/gfx/rect_io.h new file mode 100644 index 0000000..009d294 --- /dev/null +++ b/src/gfx/rect_io.h @@ -0,0 +1,27 @@ +// Aseprite Gfx Library +// Copyright (C) 2001-2014 David Capello +// +// This file is released under the terms of the MIT license. +// Read LICENSE.txt for more information. + +#ifndef GFX_RECT_IO_H_INCLUDED +#define GFX_RECT_IO_H_INCLUDED +#pragma once + +#include "gfx/rect.h" +#include <iosfwd> + +namespace gfx { + + std::ostream& operator<<(std::ostream& os, const Rect& rect) + { + return os << "(" + << rect.x << ", " + << rect.y << ", " + << rect.w << ", " + << rect.h << ")"; + } + +} + +#endif diff --git a/src/gfx/rect_tests.cpp b/src/gfx/rect_tests.cpp index 59d8aa5..0ab4802 100644 --- a/src/gfx/rect_tests.cpp +++ b/src/gfx/rect_tests.cpp @@ -6,26 +6,14 @@ #include <gtest/gtest.h> +#include "gfx/border.h" #include "gfx/rect.h" +#include "gfx/rect_io.h" #include "gfx/size.h" -#include "gfx/border.h" using namespace std; using namespace gfx; -namespace gfx { - - ostream& operator<<(ostream& os, const Rect& rect) - { - return os << "(" - << rect.x << ", " - << rect.y << ", " - << rect.w << ", " - << rect.h << ")"; - } - -} - TEST(Rect, Ctor) { EXPECT_EQ(Rect(0, 0, 0, 0), Rect()); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

