File: 005_error.nml

package info (click to toggle)
nml 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,932 kB
  • sloc: python: 20,457; ansic: 109; makefile: 68
file content (15 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Regression test for error(..) statements (ActionB)
error(NOTICE, USED_WITH, string(STR_REGRESSION_CARE));
error(FATAL, string(STR_REGRESSION_ERROR), string(STR_ANSWER), 14, param[1] + 12 * param[2]);

if (version_openttd(1,11,0) > openttd_version) {
    error(FATAL, REQUIRES_OPENTTD, string(STR_REGRESSION_ERROR));
}

if (version_openttd(12,0) > openttd_version) {
    error(FATAL, REQUIRES_OPENTTD, string(STR_REGRESSION_ERROR));
}

if (version_openttd(16,0) > openttd_version) {
    error(FATAL, REQUIRES_OPENTTD, string(STR_REGRESSION_ERROR));
}