/*************************************************************************************************************************************/
/* */
/* A T T E N T E A U F E U R O U G E : */
/* */
/* */
/* Author of '$xci/feu_attendre$K' : */
/* */
/* Jean-Francois COLONNA (LACTAMME, 1989??????????). */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* I N T E R F A C E ' listG ' : */
/* */
/* */
/* :Debut_listG: */
/* :Fin_listG: */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* D I R E C T I V E S S P E C I F I Q U E S D E C O M P I L A T I O N : */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* F I C H I E R S D ' I N C L U D E S : */
/* */
/*************************************************************************************************************************************/
#include INCLUDES_BASE
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* P A R A M E T R E S : */
/* */
/*************************************************************************************************************************************/
#define FEU_SUR_LEQUEL_ATTENDRE \
FEU_STANDARD \
/* Definition du feu standard... */
#define DUREE_DU_TIME_OUT \
ABSENCE_DE_DETECTION_DE_TIME_OUT \
/* A priori, il n'y aura pas de detection de "time-out"... */
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* M A C R O S U T I L E S : */
/* */
/*************************************************************************************************************************************/
/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/* */
/* A T T E N T E A U F E U R O U G E : */
/* */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
Bblock
DEFV(Positive,INIT(feu_sur_lequel_attendre,FEU_SUR_LEQUEL_ATTENDRE));
/* Definition du feu standard... */
DEFV(Positive,INIT(duree_du_time_out,DUREE_DU_TIME_OUT));
/* A priori, il n'y aura pas de detection de "time-out"... */
DEFV(Logical,INIT(il_y_a_eu_time_out,FAUX));
/* A priori, il n'y a pas de "time-out"... */
/*..............................................................................................................................*/
GET_ARGUMENTS_(nombre_d_arguments
,BLOC(GET_ARGUMENT_I("feu=",feu_sur_lequel_attendre);
GET_ARGUMENT_I("to=""time-out=""d=",duree_du_time_out);
)
);
ATTENDRE_AU_FEU_ROUGE_AVEC_DETECTION_DE_TIME_OUT(feu_sur_lequel_attendre,duree_du_time_out,il_y_a_eu_time_out);
/* On attend au feu rouge, un point c'est tout... */
Test(EST_VRAI(il_y_a_eu_time_out))
Bblock
CODE_ERROR(ERREUR19);
/* Un code d'erreur est alors renvoye lorsqu'un "time-out" a ete detecte... */
Eblock
ATes
Bblock
Eblock
ETes
RETU_Commande;
Eblock
ECommande
Copyright © Jean-François COLONNA, 2019-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2019-2024.