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> #include <stdint.h>
#ifndef COLOR
#define COLOR
#ifndef RED #ifndef RED
#define RED 255,0,0,255 #define RED 255,0,0,255
#endif #endif
@ -27,3 +30,4 @@ class Color {
Color(); Color();
Color(uint8_t r,uint8_t g,uint8_t b,uint8_t a); 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 { class Vector {
public: public:
float x,y; float x,y;
Vector(); Vector();
Vector(float x, float y); Vector(float x, float y);
}; };
#endif