Update NTK.
[nondaw.git] / sequencer / src / common.h
blob7c179a818db244ac044ff492e8fad3ee783ef838
3 /*******************************************************************************/
4 /* Copyright (C) 2007,2008 Jonathan Moore Liles */
5 /* */
6 /* This program is free software; you can redistribute it and/or modify it */
7 /* under the terms of the GNU General Public License as published by the */
8 /* Free Software Foundation; either version 2 of the License, or (at your */
9 /* option) any later version. */
10 /* */
11 /* This program is distributed in the hope that it will be useful, but WITHOUT */
12 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
13 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
14 /* more details. */
15 /* */
16 /* You should have received a copy of the GNU General Public License along */
17 /* with This program; see the file COPYING. If not,write to the Free Software */
18 /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 /*******************************************************************************/
21 // #pragma once
23 typedef unsigned char byte_t;
24 typedef double tick_t;
25 typedef unsigned int uint;
28 /* #define min(x,y) ((x) < (y) ? (x) : (y)) */
29 /* #define max(x,y) ((x) > (y) ? (x) : (y)) */
31 #include <algorithm>
32 using namespace std;
34 #define elementsof(x) (sizeof((x)) / sizeof((x)[0]))
36 #include "config.h"
37 #include "const.h"
38 #include "debug.h"