mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
* Unicode support Part 1 Makes all calls to ascii2text() and text2ascii() unicode aware as well as all calls in code/__HELPERS/text.dm. Adds defines for the footext_char() procs to maintain 512 support. I did some cleanup on the text helpers since a lot of them were really, really bad. reject_bad_text() and reject_bad_name() have an arg to reject non-ascii chars which defaults to TRUE. * Give travis a more recent beta * Ultimate compat Added the _char procs I was missing Test the build instead of the version because Lummox is a goddamn moron * Suggested fixes, removes the last of the dd_ helpers * Reading the reference is very important! * Minor code improvements and a comment * Typo
78 lines
2.8 KiB
Plaintext
78 lines
2.8 KiB
Plaintext
//#define TESTING //By using the testing("message") proc you can create debug-feedback for people with this
|
|
//uncommented, but not visible in the release version)
|
|
|
|
//#define DATUMVAR_DEBUGGING_MODE //Enables the ability to cache datum vars and retrieve later for debugging which vars changed.
|
|
|
|
// Comment this out if you are debugging problems that might be obscured by custom error handling in world/Error
|
|
#ifdef DEBUG
|
|
#define USE_CUSTOM_ERROR_HANDLER
|
|
#endif
|
|
|
|
#ifdef TESTING
|
|
#define DATUMVAR_DEBUGGING_MODE
|
|
|
|
//#define GC_FAILURE_HARD_LOOKUP //makes paths that fail to GC call find_references before del'ing.
|
|
//implies FIND_REF_NO_CHECK_TICK
|
|
|
|
//#define FIND_REF_NO_CHECK_TICK //Sets world.loop_checks to false and prevents find references from sleeping
|
|
|
|
|
|
//#define VISUALIZE_ACTIVE_TURFS //Highlights atmos active turfs in green
|
|
#endif
|
|
|
|
//#define UNIT_TESTS //Enables unit tests via TEST_RUN_PARAMETER
|
|
|
|
#ifndef PRELOAD_RSC //set to:
|
|
#define PRELOAD_RSC 2 // 0 to allow using external resources or on-demand behaviour;
|
|
#endif // 1 to use the default behaviour;
|
|
// 2 for preloading absolutely everything;
|
|
|
|
#ifdef LOWMEMORYMODE
|
|
#define FORCE_MAP "_maps/runtimestation.json"
|
|
#endif
|
|
|
|
//Update this whenever you need to take advantage of more recent byond features
|
|
#define MIN_COMPILER_VERSION 512
|
|
#if DM_VERSION < MIN_COMPILER_VERSION
|
|
//Don't forget to update this part
|
|
#error Your version of BYOND is too out-of-date to compile this project. Go to https://secure.byond.com/download and update.
|
|
#error You need version 512 or higher
|
|
#endif
|
|
|
|
//Compatability -- These procs were added in 513.1493, not 513.1490
|
|
//Which really shoulda bumped us up to 514 right then and there but instead Lummox is a dumb dumb
|
|
#if DM_BUILD < 1493
|
|
#define length_char(args...) length(args)
|
|
#define text2ascii_char(args...) text2ascii(args)
|
|
#define copytext_char(args...) copytext(args)
|
|
#define splittext_char(args...) splittext(args)
|
|
#define spantext_char(args...) spantext(args)
|
|
#define nonspantext_char(args...) nonspantext(args)
|
|
#define findtext_char(args...) findtext(args)
|
|
#define findtextEx_char(args...) findtextEx(args)
|
|
#define findlasttext_char(args...) findlasttext(args)
|
|
#define findlasttextEx_char(args...) findlasttextEx(args)
|
|
#define replacetext_char(args...) replacetext(args)
|
|
#define replacetextEx_char(args...) replacetextEx(args)
|
|
// /regex procs
|
|
#define Find_char(args...) Find(args)
|
|
#define Replace_char(args...) Replace(args)
|
|
#endif
|
|
|
|
//Additional code for the above flags.
|
|
#ifdef TESTING
|
|
#warn compiling in TESTING mode. testing() debug messages will be visible.
|
|
#endif
|
|
|
|
#ifdef GC_FAILURE_HARD_LOOKUP
|
|
#define FIND_REF_NO_CHECK_TICK
|
|
#endif
|
|
|
|
#ifdef TRAVISBUILDING
|
|
#define UNIT_TESTS
|
|
#endif
|
|
|
|
#ifdef TRAVISTESTING
|
|
#define TESTING
|
|
#endif
|