Added FORchk.c
This commit is contained in:
parent
286acd933c
commit
617f210cf8
2 changed files with 9 additions and 0 deletions
8
lang/m2/libm2/FORchk.c
Normal file
8
lang/m2/libm2/FORchk.c
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
static char m[] = "Warning: FOR-loop control variable was changed in the body";
|
||||||
|
_forloopchk(a,b)
|
||||||
|
unsigned a, b;
|
||||||
|
{
|
||||||
|
if (a != b) {
|
||||||
|
Traps_Message(m , 0, sizeof(m) - 2, 1);
|
||||||
|
}
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ Semaphores.mod
|
||||||
random.mod
|
random.mod
|
||||||
Strings.mod
|
Strings.mod
|
||||||
catch.c
|
catch.c
|
||||||
|
FORchk.c
|
||||||
Traps.mod
|
Traps.mod
|
||||||
Arguments.c
|
Arguments.c
|
||||||
LtoUset.e
|
LtoUset.e
|
||||||
|
|
Loading…
Reference in a new issue