Will changing the size of MAX_PROMPT_LENGTH break anything?

Login to reply  Page: « < 1 of 1 > »
23 Feb 2010 - 00:002382
Will changing the size of MAX_PROMPT_LENGTH break anything?
So far, it seems alright set at 128, I'm just wondering if there's any other implications of doing this that could break things down the road.


23 Feb 2010 - 19:232386
You can safely increase it but don't exceed the previously defined constant MAX_STRING_LENGTH.

As for decreasing, you won't "break" anything in so far as crashes, but you may find that you trigger some exceptions and have the MUD shutdown (deliberately through exit()'s) in places where it didn't before, if you decrease it by too much.

However I assume that you intend to increase it to allow for long custom prompts. So yes you can safely do this.


__________________
The Augmented Dimension
( A fantasy hack/slash Circle 3.1 derivative )
frostmud.com 8228

Last edited by Kyle (23 Feb 2010 - 19:23)
Login to reply  Page: « < 1 of 1 > »