AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Header:     assert.H

Syntax:     
void assert
(
int exp
);


This function checks the value of exp. If it is zero (ie false) then the program aborts instantly with a message giving "exp" and the current file and line within that file. It would normally be used with a condition as exp,
for example:
assert(a==b);
would abort if a did not equal b.

[sh-index] Back to list of manuals