sw-battle-test-c

Interesting test task in C instead of C++
git clone git://bsandro.tech/sw-battle-test-c
Log | Files | Refs | README

component.h (255B)


      1 #pragma once
      2 
      3 #include "components/_include.h"
      4 
      5 typedef enum ComponentType {
      6 #include "components/_types.inc"
      7 } ComponentType;
      8 
      9 typedef struct Component {
     10     ComponentType type;
     11     union {
     12         #include "components/_registry.inc"
     13     };
     14 } Component;