]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/motion/trgendbg.h
robofsm: Competition strategy tuning.
[eurobot/public.git] / src / motion / trgendbg.h
1 //     Copyright 2009 Michal Sojka <sojkam1@fel.cvut.cz>
2 //     Copyright 2009 Petr Beneš
3 //
4 //     This file is part of Trgen library.
5 //
6 //     Trgen is free software: you can redistribute it and/or modify
7 //     it under the terms of the GNU General Public License as published by
8 //     the Free Software Foundation, either version 3 of the License, or
9 //     (at your option) any later version.
10 //
11 //     Trgen is distributed in the hope that it will be useful,
12 //     but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //     GNU General Public License for more details.
15 //
16 //     You should have received a copy of the GNU General Public License
17 //     along with Trgen.  If not, see <http://www.gnu.org/licenses/>.
18
19 #ifndef TRGENDBG_H
20 #define TRGENDBG_H
21
22 //#define DEBUG
23
24 #ifdef MATLAB_MEX_FILE
25 #include "simstruc.h"
26 #endif
27
28
29
30 #ifdef DEBUG
31   #ifdef MATLAB_MEX_FILE
32     #define dbgPrintf(format, ...) ssPrintf(format, ##__VA_ARGS__)
33   #else
34     #define dbgPrintf(format, ...) printf(format, ##__VA_ARGS__)
35   #endif
36 #else
37 #define dbgPrintf(format, ...)
38 #endif
39
40
41 #endif