blob: ecbf390378e50ff1e553232ae58f3c49ea81733a [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001/* This sefun is to provide a replacement for the efun query_limits().
2 * Feel free to add it to your mudlibs, if you have much code relying on that.
3 */
4
5#if ! __EFUN_DEFINED__(query_limits)
6
7#include <driver_info.h>
8
9varargs int* query_limits(int def)
10{
11 return efun::driver_info(def ? DC_DEFAULT_RUNTIME_LIMITS : DI_CURRENT_RUNTIME_LIMITS);
12}
13
14#endif