Files
st/include/profile.hpp
T
Yanis 1b31487fee Improve or match actor static initializers (#44)
* use the new DECL_PROFILE macro to match static initializers

* forgot to keep the mode macro

* same thing with mapobjects

* create profile.hpp

* update delink and symbols for eur

* update delink and symbols for jp

* ninja format

* fix some stuff 1

* fix jp build
2026-04-12 04:36:32 +02:00

12 lines
286 B
C++

#pragma once
#define DECL_PROFILE(T) \
T ProfileInstance<T>::sProfile; \
T *T::GetProfile() { \
return &ProfileInstance<T>::sProfile; \
}
template <typename T> struct ProfileInstance {
static T sProfile;
};