1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 17:57:56 +00:00

export everything: modules compiled separately

This commit is contained in:
Zeno Rogue
2019-09-06 08:17:02 +02:00
parent e96d24e8c2
commit 848eb8f48b
47 changed files with 268 additions and 236 deletions

View File

@@ -183,7 +183,7 @@ EX void set_if_removed(cell*& c, cell *val) {
typedef array<char, 1048576> reserve_block;
int reserve_count = 0;
EX int reserve_count = 0;
EX int reserve_limit = 128;
const int max_reserve = 4096;
@@ -226,7 +226,7 @@ EX void apply_memory_reserve() {
#endif
}
void memory_for_lib() {
EX void memory_for_lib() {
if(reserve_count) { reserve_count--; delete reserve[reserve_count]; }
}
@@ -284,7 +284,7 @@ EX void show_memory_menu() {
dialog::display();
}
bool protect_memory() {
EX bool protect_memory() {
if(!CAP_MEMORY_RESERVE) return false;
apply_memory_reserve();
if(reserve_limit && reserve_count < reserve_limit && !ignored_memory_warning) {
@@ -298,7 +298,7 @@ bool protect_memory() {
return false;
}
bool memory_issues() {
EX bool memory_issues() {
return reserve_limit && reserve_count < 16;
}