/[ascend]/trunk/base/generic/compiler/statement.h
ViewVC logotype

Diff of /trunk/base/generic/compiler/statement.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 147 by johnpye, Tue Dec 20 08:32:25 2005 UTC revision 148 by johnpye, Thu Dec 22 08:49:39 2005 UTC
# Line 368  extern struct Statement *CreateCALL(symc Line 368  extern struct Statement *CreateCALL(symc
368   *  The statement's line number is set to the current line number.   *  The statement's line number is set to the current line number.
369   */   */
370    
371  extern struct Statement *CreateTEST(struct Expr *ex);  extern struct Statement *CreateASSERT(struct Expr *ex);
372  /**  /**
373      @param ex test expression.      @param ex test expression.
374    
375      Create a TEST statement with test expression 'ex'. If the expression      Create a ASSERT statement with test expression 'ex'. If the expression
376      evaluates to false, an error message will be shown. Implemented for use      evaluates to false, an error message will be shown. Implemented for use
377      in 'self_test' functionality.      in 'self_test' functionality.
378  */  */
# Line 1735  extern struct StatementList *WhileStatBl Line 1735  extern struct StatementList *WhileStatBl
1735   * @todo Needs a function wrapper.   * @todo Needs a function wrapper.
1736   */   */
1737    
1738  /* * * StateTEST functions * * */  /* * * StateASSERT functions * * */
1739    
1740  /** Return the TEST expression  /** Return the ASSERT expression
1741      @param s the expression to test      @param s the expression to test
1742      @see TestStatExprF()      @see AssertStatExprF()
1743  */  */
1744  #ifdef NDEBUG  #ifdef NDEBUG
1745  # define TestStatExpr(s) ((s)->v.tests.test)  # define AssertStatExpr(s) ((s)->v.asserts.test)
1746  #else  #else
1747  # define TestStatExpr(s) TestStatExprF(s)  # define AssertStatExpr(s) AssertStatExprF(s)
1748  #endif  #endif
1749    
1750  /** Internal implemention of TEST expression  /** Internal implemention of ASSERT expression
1751      @see IfStatExprF()      @see IfStatExprF()
1752  */  */
1753  extern struct Expr *TestStatExprF(CONST struct Statement *s);  extern struct Expr *AssertStatExprF(CONST struct Statement *s);
1754    
1755  /* * * StateIf functions * * */  /* * * StateIf functions * * */
1756    

Legend:
Removed from v.147  
changed lines
  Added in v.148

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22