mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
* Update the codebase to 515. * edit that * WHOOPS * maor * maybe works * libcall and shit * do that too * remove that * auxtools isnt updated so get rid of it * actually remove auxtools lol Co-authored-by: Matt Atlas <liermattia@gmail.com>
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
// 515 split call for external libraries into call_ext
|
|
#if DM_VERSION < 515
|
|
#define LIBCALL call
|
|
#else
|
|
#define LIBCALL call_ext
|
|
#endif
|
|
|
|
// So we want to have compile time guarantees these procs exist on local type, unfortunately 515 killed the .proc/procname syntax so we have to use nameof()
|
|
#if DM_VERSION < 515
|
|
/// Call by name proc reference, checks if the proc exists on this type or as a global proc
|
|
#define PROC_REF(X) (.proc/##X)
|
|
/// Call by name proc reference, checks if the proc exists on given type or as a global proc
|
|
#define TYPE_PROC_REF(TYPE, X) (##TYPE.proc/##X)
|
|
/// Call by name proc reference, checks if the proc is existing global proc
|
|
#define GLOBAL_PROC_REF(X) (/proc/##X)
|
|
#else
|
|
/// Call by name proc reference, checks if the proc exists on this type or as a global proc
|
|
#define PROC_REF(X) (nameof(.proc/##X))
|
|
/// Call by name proc reference, checks if the proc exists on given type or as a global proc
|
|
#define TYPE_PROC_REF(TYPE, X) (nameof(##TYPE.proc/##X))
|
|
/// Call by name proc reference, checks if the proc is existing global proc
|
|
#define GLOBAL_PROC_REF(X) (/proc/##X)
|
|
#endif |