File: 005_error.nml

package info (click to toggle)
nml 0.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,792 kB
  • sloc: python: 18,398; ansic: 109; makefile: 69
file content (15 lines) | stat: -rw-r--r-- 553 bytes parent folder | download
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));
}