2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
22 void operator()(void const *) const { }
27 template <typename T
> class Grid
;
28 template <typename T
> class PointerGrid
;
29 //typedef PointerGrid<ChessPiece> PieceGrid;
31 #define FORALL(i, collection, type) \
32 for (type::iterator i = (collection).begin(); i != (collection).end(); ++i)
35 std::ostream
&operator <<(std::ostream
&os
, const QString
& s
);
37 inline const char* wrap_cptr(const char* ptr
) {
38 return ptr
? ptr
: "[NULL]";
41 QString
qPrintf(const char* fmt
, ...);
43 QString
prettyTypeName(const char* name
);
47 __asm__
__volatile__("int $3\n\t");
52 #define M_PI 3.1415926
55 #define ERROR(x) (std::cout << "Error: " << x << std::endl \
56 << " in " << __PRETTY_FUNCTION__ << ", line " << __LINE__ << " of " << __FILE__ <<std::endl)