multiple inclide protection

This commit is contained in:
Solomon W. 2020-05-31 12:56:53 -04:00
parent 21e373d1ec
commit 7de795a48f
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,8 @@
#include <stdint.h>
#ifndef COLOR
#define COLOR
#ifndef RED
#define RED 255,0,0,255
#endif
@ -26,4 +29,5 @@ class Color {
uint8_t r,g,b,a;
Color();
Color(uint8_t r,uint8_t g,uint8_t b,uint8_t a);
};
};
#endif

View File

@ -1,6 +1,9 @@
#ifndef VECTOR
#define VECTOR
class Vector {
public:
float x,y;
Vector();
Vector(float x, float y);
};
};
#endif