Skip to content

Commit f2b0777

Browse files
author
Martin Klang
committed
updated macros
1 parent 396f9c6 commit f2b0777

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

LibSource/ScreenBuffer.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
22
#define __ScreenBuffer_h__
33

44
#include <stdint.h>
5+
#include <string.h>
56
#include "device.h"
67
#include "message.h"
78

8-
#define swap(a, b) { int16_t t = a; a = b; b = t; }
9-
#ifndef min
10-
#define min(a,b) ((a)<(b)?(a):(b))
11-
#endif
12-
#ifndef max
13-
#define max(a,b) ((a)>(b)?(a):(b))
14-
#endif
15-
#ifndef abs
16-
#define abs(x) ((x)>0?(x):-(x))
9+
#ifndef swap
10+
#define swap(a, b) { int t = a; a = b; b = t; }
1711
#endif
1812

1913
template<typename Colour, Colour BLACK, Colour WHITE>

0 commit comments

Comments
 (0)