-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates rustg, patches potential memory issue, leaper + fire changes,…
… ai safety
- Loading branch information
Showing
9 changed files
with
113 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
var/global/list/qdel_refs_to_type = list() | ||
|
||
#define qdel(object) \ | ||
if (!object) { \ | ||
log_error("Tried to qdel null object! in [__FILE__]:[__LINE__]"); \ | ||
} \ | ||
else if (object.qdeleting) { \ | ||
if (!object.qdel_warning) { \ | ||
var/warning_message = "[object.get_debug_name()] was queued for delete more than once! in [__FILE__]:[__LINE__], Original: [object.qdeleting]."; \ | ||
log_error(warning_message); \ | ||
rustg_log_write(GARBAGE_LOGS_PATH,warning_message,"true"); \ | ||
} \ | ||
object.qdel_warning = TRUE; \ | ||
} \ | ||
else { \ | ||
var/datum/_qdel_stored_object = object; \ | ||
_qdel_stored_object.qdeleting = "[__FILE__]:[__LINE__]"; \ | ||
HOOK_CALL_ADV("Destroy",_qdel_stored_object,null); \ | ||
qdel_refs_to_type["\ref[_qdel_stored_object]"] = _qdel_stored_object.type; \ | ||
if(!_qdel_stored_object.PreDestroy()) { \ | ||
var/warning_message = "[_qdel_stored_object.get_debug_name()] did not have a proper PreDestroy() call! in [__FILE__]:[__LINE__]"; \ | ||
log_error(warning_message); \ | ||
rustg_log_write(GARBAGE_LOGS_PATH,warning_message,"true"); \ | ||
} \ | ||
if(!_qdel_stored_object.Destroy()) { \ | ||
var/warning_message = "[_qdel_stored_object.get_debug_name()] did not have a proper Destroy() call! in [__FILE__]:[__LINE__]"; \ | ||
log_error(warning_message); \ | ||
rustg_log_write(GARBAGE_LOGS_PATH,warning_message,"true"); \ | ||
} \ | ||
_qdel_stored_object.PostDestroy(); \ | ||
#define qdel(object) \ | ||
if (!object) { \ | ||
log_error("Tried to qdel null object! in [__FILE__]:[__LINE__]"); \ | ||
} \ | ||
else if (object.qdeleting) { \ | ||
if (!object.qdel_warning) { \ | ||
var/warning_message = "[object.get_debug_name()] was queued for delete more than once! in [__FILE__]:[__LINE__], Original: [object.qdeleting]."; \ | ||
log_error(warning_message); \ | ||
rustg_log_write(GARBAGE_LOGS_PATH,warning_message,"true"); \ | ||
} \ | ||
object.qdel_warning = TRUE; \ | ||
} \ | ||
else { \ | ||
var/datum/_qdel_stored_object = object; \ | ||
_qdel_stored_object.qdeleting = "[__FILE__]:[__LINE__]"; \ | ||
HOOK_CALL_ADV("Destroy",_qdel_stored_object,null); \ | ||
if(CONFIG("TRACK_GARBAGE",null)) {qdel_refs_to_type["\ref[_qdel_stored_object]"] = _qdel_stored_object.type}; \ | ||
if(!_qdel_stored_object.PreDestroy()) { \ | ||
var/warning_message = "[_qdel_stored_object.get_debug_name()] did not have a proper PreDestroy() call! in [__FILE__]:[__LINE__]"; \ | ||
log_error(warning_message); \ | ||
rustg_log_write(GARBAGE_LOGS_PATH,warning_message,"true"); \ | ||
} \ | ||
if(!_qdel_stored_object.Destroy()) { \ | ||
var/warning_message = "[_qdel_stored_object.get_debug_name()] did not have a proper Destroy() call! in [__FILE__]:[__LINE__]"; \ | ||
log_error(warning_message); \ | ||
rustg_log_write(GARBAGE_LOGS_PATH,warning_message,"true"); \ | ||
} \ | ||
_qdel_stored_object.PostDestroy(); \ | ||
} | ||
|
||
#define qdel_in(object,time) CALLBACK_GLOBAL("\ref[object]_qdel_in",time,/datum/proc/delete) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.