mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
23 lines
572 B
Plaintext
23 lines
572 B
Plaintext
///Protects a datum from being VV'd or spawned through admin manipulation
|
|
#ifndef TESTING
|
|
#define GENERAL_PROTECT_DATUM(Path)\
|
|
##Path/can_vv_get(var_name){\
|
|
return FALSE;\
|
|
}\
|
|
##Path/vv_edit_var(var_name, var_value){\
|
|
return FALSE;\
|
|
}\
|
|
##Path/CanProcCall(procname){\
|
|
return FALSE;\
|
|
}\
|
|
##Path/Read(savefile/savefile){\
|
|
del(src);\
|
|
}\
|
|
##Path/Write(savefile/savefile){\
|
|
return;\
|
|
}
|
|
#else
|
|
#define GENERAL_PROTECT_DATUM(Path)
|
|
#endif
|
|
// we del instead of qdel because for security reasons we must ensure the datum does not exist if Read is called. qdel will not enforce this.
|