mirror of
https://github.com/zeldaret/st
synced 2026-05-24 07:10:56 -04:00
1b31487fee
* 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
12 lines
286 B
C++
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;
|
|
};
|