1 #ifndef COMPONENT_UTIL_H
2 #define COMPONENT_UTIL_H
4 typedef unsigned int ComponentId;
6 inline ComponentId get_unique_id() {
7 static ComponentId
id = 0;
16 static ComponentId get_type_id() {
17 static ComponentId type_id = get_unique_id();
22 #endif // COMPONENT_UTIL_H