From d67253280110bd7661738483396f32312eb7ef2d Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Wed, 29 Nov 2023 03:36:43 -0600 Subject: [PATCH] shrug --- code/__DEFINES/spaceman_dmm.dm | 56 +++++++++++++++++----------------- code/__HELPERS/bindings.dm | 36 +++++++++++----------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/code/__DEFINES/spaceman_dmm.dm b/code/__DEFINES/spaceman_dmm.dm index cabb02fd49c0..c4f84d5fce58 100644 --- a/code/__DEFINES/spaceman_dmm.dm +++ b/code/__DEFINES/spaceman_dmm.dm @@ -4,46 +4,46 @@ // The SPACEMAN_DMM define is set by the linter and other tooling when it runs. #ifdef SPACEMAN_DMM /** - * Sets a return type expression for a proc. The return type can take the forms: + * Sets a return type expression for a proc. The return type can take the forms: - * `/typepath` - a raw typepath. The return type of the proc is the type named. + * `/typepath` - a raw typepath. The return type of the proc is the type named. - * `param` - a typepath given as a parameter, for procs which return an instance of the passed-in type. + * `param` - a typepath given as a parameter, for procs which return an instance of the passed-in type. - * `param.type` - the static type of a passed-in parameter, for procs which - * return their input or otherwise another value of the same type. + * `param.type` - the static type of a passed-in parameter, for procs which + * return their input or otherwise another value of the same type. - * `param[_].type` - the static type of a passed-in parameter, with one level - * of `/list` stripped, for procs which select one item from a list. The `[_]` - * may be repeated to strip more levels of `/list`. - */ + * `param[_].type` - the static type of a passed-in parameter, with one level + * of `/list` stripped, for procs which select one item from a list. The `[_]` + * may be repeated to strip more levels of `/list`. + */ #define RETURN_TYPE(X) set SpacemanDMM_return_type = X /** - * If set, will enable a diagnostic on children of the proc it is set on which do - * not contain any `..()` parent calls. This can help with finding situations - * where a signal or other important handling in the parent proc is being skipped. - * Child procs may set this setting to `0` instead to override the check. - */ + * If set, will enable a diagnostic on children of the proc it is set on which do + * not contain any `..()` parent calls. This can help with finding situations + * where a signal or other important handling in the parent proc is being skipped. + * Child procs may set this setting to `0` instead to override the check. + */ #define SHOULD_CALL_PARENT(X) set SpacemanDMM_should_call_parent = X /** - * If set, raise a warning for any child procs that override this one, - * regardless of if it calls parent or not. - * This functions in a similar way to the `final` keyword in some languages. - * This cannot be disabled by child overrides. - */ + * If set, raise a warning for any child procs that override this one, + * regardless of if it calls parent or not. + * This functions in a similar way to the `final` keyword in some languages. + * This cannot be disabled by child overrides. + */ #define SHOULD_NOT_OVERRIDE(X) set SpacemanDMM_should_not_override = X /** - * If set, raise a warning if the proc or one of the sub-procs it calls - * uses a blocking call, such as `sleep()` or `input()` without using `set waitfor = 0` - * This cannot be disabled by child overrides. - */ + * If set, raise a warning if the proc or one of the sub-procs it calls + * uses a blocking call, such as `sleep()` or `input()` without using `set waitfor = 0` + * This cannot be disabled by child overrides. + */ #define SHOULD_NOT_SLEEP(X) set SpacemanDMM_should_not_sleep = X /** - * If set, ensure a proc is 'pure', such that it does not make any changes - * outside itself or output. This also checks to make sure anything using - * this proc doesn't invoke it without making use of the return value. - * This cannot be disabled by child overrides. - */ + * If set, ensure a proc is 'pure', such that it does not make any changes + * outside itself or output. This also checks to make sure anything using + * this proc doesn't invoke it without making use of the return value. + * This cannot be disabled by child overrides. + */ #define SHOULD_BE_PURE(X) set SpacemanDMM_should_be_pure = X ///Private procs can only be called by things of exactly the same type. #define PRIVATE_PROC(X) set SpacemanDMM_private_proc = X diff --git a/code/__HELPERS/bindings.dm b/code/__HELPERS/bindings.dm index 38991900ed4b..18f8586433bf 100644 --- a/code/__HELPERS/bindings.dm +++ b/code/__HELPERS/bindings.dm @@ -6,27 +6,12 @@ else return "auxmos" -/proc/finalize_gas_refs() - return call_ext(AUXMOS, "byond:finalize_gas_refs_ffi")() - -/datum/controller/subsystem/air/proc/auxtools_update_reactions() - return call_ext(AUXMOS, "byond:update_reactions_ffi")() - -/proc/auxtools_atmos_init(gas_data) - return call_ext(AUXMOS, "byond:hook_init_ffi")(gas_data) - -/proc/_auxtools_register_gas(gas) - return call_ext(AUXMOS, "byond:hook_register_gas_ffi")(gas) - /turf/proc/__update_auxtools_turf_adjacency_info() return call_ext(AUXMOS, "byond:hook_infos_ffi")(src) /turf/proc/update_air_ref(flag) return call_ext(AUXMOS, "byond:hook_register_turf_ffi")(src, flag) -/datum/controller/subsystem/air/proc/process_excited_groups_auxtools(remaining) - return call_ext(AUXMOS, "byond:groups_hook_ffi")(src, remaining) - /datum/gas_mixture/proc/__auxtools_parse_gas_string(string) return call_ext(AUXMOS, "byond:parse_gas_string_ffi")(src, string) @@ -166,6 +151,24 @@ /proc/process_atmos_callbacks(remaining) return call_ext(AUXMOS, "byond:atmos_callback_handle_ffi")(remaining) +/datum/controller/subsystem/air/proc/process_turf_equalize_auxtools(remaining) + return call_ext(AUXMOS, "byond:equalize_hook_ffi")(src, remaining) + +/datum/controller/subsystem/air/proc/process_excited_groups_auxtools(remaining) + return call_ext(AUXMOS, "byond:groups_hook_ffi")(src, remaining) + +/proc/finalize_gas_refs() + return call_ext(AUXMOS, "byond:finalize_gas_refs_ffi")() + +/datum/controller/subsystem/air/proc/auxtools_update_reactions() + return call_ext(AUXMOS, "byond:update_reactions_ffi")() + +/proc/auxtools_atmos_init(gas_data) + return call_ext(AUXMOS, "byond:hook_init_ffi")(gas_data) + +/proc/_auxtools_register_gas(gas) + return call_ext(AUXMOS, "byond:hook_register_gas_ffi")(gas) + /proc/__auxmos_shutdown() return call_ext(AUXMOS, "byond:auxmos_shutdown_ffi")() @@ -177,6 +180,3 @@ /datum/controller/subsystem/air/proc/thread_running() return call_ext(AUXMOS, "byond:thread_running_hook_ffi")() - -/datum/controller/subsystem/air/proc/process_turf_equalize_auxtools(remaining) - return call_ext(AUXMOS, "byond:equalize_hook_ffi")(src, remaining)