diff options
Diffstat (limited to 'src/table/settings.ini')
-rw-r--r-- | src/table/settings.ini | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini index dd0ecfee5..b48ac6cd6 100644 --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -77,6 +77,14 @@ SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, SDT_NULL = SDT_NULL($length, $from, $to), SDT_END = SDT_END() +[validation] +SDTG_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size"); +SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size"); +SDTC_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size"); +SDTC_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size"); +SDT_OMANY = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size"); +SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size"); + [defaults] flags = 0 guiflags = SGF_NONE |