diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/debug-debug-scripts | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/tools/debug-debug-scripts b/tools/debug-debug-scripts index 79520e9..e5eeb6c 100755 --- a/tools/debug-debug-scripts +++ b/tools/debug-debug-scripts @@ -1,7 +1,26 @@ #!/usr/bin/env python - +# encoding: utf-8 from __future__ import print_function +copyright = ''' +// Copyright © 2014 Ben Longbons <b.r.longbons@gmail.com> +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +''' + import itertools import os import subprocess @@ -57,8 +76,13 @@ def gen_test(name, expr, expected): print('}') def main(args): - print('// Generated by', __file__) + print('// test.cpp - generated by', __file__) + print(copyright) print('#include <cstdio>') + print('// just mention "fwd.hpp" and "../poison.hpp" to make formatter happy') + print('namespace tmwa') + print('{') + print('} // namespace tmwa') print() print('template<class T>') print('__attribute__((noinline))') |