diff options
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp index 3d7483d..7d3a1f9 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -28,6 +28,10 @@ along with Minitrem. If not, see <http://www.gnu.org/licenses/>. #include <SFML/Audio.hpp> #include "math.hpp" +#ifdef __linux +#define CONFIG_SHOW_RSS +#endif + #define COUNT(A) (sizeof(A) / sizeof((A)[0])) extern bool debug_draw_cmodels; @@ -63,6 +67,10 @@ public: extern freq_counter_t fc_render; extern freq_counter_t fc_game; +#ifdef CONFIG_SHOW_RSS +size_t sys_get_rss(void); +#endif + namespace procgen { class prng_t { uint32_t state = 0; |