PHB_EXPR hb_compErrorAlias( HB_COMP_DECL, PHB_EXPR pExpr ) { const char * szDesc = hb_compExprDescription( pExpr ); hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'E', HB_COMP_ERR_INVALID_ALIAS, szDesc, NULL ); return pExpr; }
PHB_EXPR hb_compErrorStatic( HB_COMP_DECL, const char * szVarName, PHB_EXPR pExpr ) { const char * szDesc = hb_compExprDescription( pExpr ); hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'E', HB_COMP_ERR_ILLEGAL_INIT, szVarName, szDesc ); return pExpr; }
static PHB_EXPR hb_compErrorSyntax( HB_COMP_DECL, PHB_EXPR pExpr ) { const char * szDesc = hb_compExprDescription( pExpr ); hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'E', HB_COMP_ERR_SYNTAX, szDesc, NULL ); return pExpr; }
PHB_EXPR hb_compWarnMeaningless( HB_COMP_DECL, PHB_EXPR pExpr ) { if( ! HB_COMP_PARAM->fMeaningful ) { const char * szDesc = hb_compExprDescription( pExpr ); hb_compGenWarning( HB_COMP_PARAM, hb_comp_szWarnings, 'W', HB_COMP_WARN_MEANINGLESS, szDesc, NULL ); } return pExpr; }