mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-17 20:30:46 +01:00
6275972fef
* Add Verdigris, an in-tree rust module to cover our random performance-code needs * Add a features section to the verdigris readme * Update linux so to latest as well
19 lines
630 B
Plaintext
19 lines
630 B
Plaintext
/* This comment bypasses grep checks */ /var/__verdigris
|
|
|
|
/proc/__detect_verdigris()
|
|
if (world.system_type == UNIX)
|
|
return __verdigris = (fexists("./libverdigris.so") ? "./libverdigris.so" : "libverdigris")
|
|
else
|
|
return __verdigris = "verdigris"
|
|
|
|
#define VERDIGRIS (__verdigris || __detect_verdigris())
|
|
#define VERDIGRIS_CALL(name, args...) call_ext(VERDIGRIS, "byond:" + name)(args)
|
|
|
|
/proc/verdigris_version() return VERDIGRIS_CALL("verdigris_version")
|
|
/proc/verdigris_features() return VERDIGRIS_CALL("verdigris_features")
|
|
/proc/verdigris_cleanup() return VERDIGRIS_CALL("cleanup")
|
|
|
|
/world/New()
|
|
verdigris_cleanup()
|
|
..()
|