--- branches/vis12/src/compiler/c-target/fragments/c-body.in 2012/04/21 15:30:26 1861 +++ branches/vis12/src/compiler/c-target/fragments/c-body.in 2012/04/22 19:45:47 1862 @@ -56,3 +56,18 @@ { return 0; /* FIXME */ } + +//! Return true if there are any recorded error conditions +bool @PREFIX@AnyErrors (@PREFIX@World_t *wrld) +{ + return (wrld->errors->errNum > 0); +} + +//! Return the pending error message (if any). This call clears the pending error +//! state. +char *@PREFIX@GetErrors (@PREFIX@World_t *wrld) +{ + char *msg = biffMsgStrGet (wrld->errors); + biffMsgClear (wrld->errors); + return msg; +}
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: + char *msg = biffMsgStrGet (wrld->errors); + biffMsgClear (wrld->errors); + return msg; +}