misc/coverity_model.c
author Wuzzy <Wuzzy2@mail.ru>
Sun, 12 Nov 2017 17:41:01 +0100
changeset 12831 1fbc0d5a82d0
parent 10498 bcd1d7ad2f3e
permissions -rw-r--r--
Backed out changeset 575c0de98505 Reason: We suspect that this patch might break Windows builds and render the mouse on Windows unusable. This suspicion is based on the bug report of one user: https://hedgewars.org/node/6837#comment-33593 In return, this changeset will definitely re-introduce bug #512.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10498
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     1
void fpcrtl_halt(int num) {
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     2
    __coverity_panic__();
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     3
}
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     4
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     5
int fpcrtl_abs(int num) {
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     6
    return num >= 0 ? num : -num;
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     7
}