/* **--------------------------------------------------------------------- ** Copyright Kalimetrix 2014 **-------------------------------------------------------------------- ** Project : Kalimetrix Logiscope TestChecker C/C++ ** Date : December 2000 ** ** Summary : ** ** This file contains the declaration of instrumentation functions for the ** LOGISCOPE C++. ** These functions are global and are called by the instrumented modules. ** The fonctions are as follows: ** ** - vlg_c_cd1 : instrumentation of the beginning of a module. ** - vlg_c_cdx : instrumentation of a DDP. ** - vlg_cond : instrumentation of a condition ** - vlg_c_cdf : instrumentation of the end of a module. ** */ #ifndef VLGINS_H #define VLGINS_H #ifndef __LOG_APP_NAME__ #define __LOG_APP_NAME__ 0 #endif #define vlg_cpp_cd1(c,d) vlg_c_cd1 (c, d, __LOG_APP_NAME__) #define vlg_cpp_cdf(c) vlg_c_cdf (c, __LOG_APP_NAME__) #define vlg_cpp_cdx(c,n) vlg_c_cdx (c, n, __LOG_APP_NAME__) #define vlg_cpp_app(c1,c2) vlg_c_app (c1, c2, __LOG_APP_NAME__) #ifdef LOGISCOPE_STATIC #define VLG_DDP1(name, date, static_message, module) module static_message #define VLG_COND(name, condition, true, false, static_message, static_else_message) static_message static_else_message #define VLG_DDP(name, number, static_message) static_message #define VLG_CDF(name) static_message #else #define VLG_DDP1(name, date) vlg_cpp_cd1 (name, date) #define VLG_COND(name, condition, ddpTrue, ddpFalse) vlg_cond (name, condition, ddpTrue, ddpFalse) #define VLG_DDP(name, number) vlg_cpp_cdx (name, number) #define VLG_CDF(name) vlg_cpp_cdf (name) #endif #ifdef __cplusplus extern "C" { #endif void vlg_c_cd1 (char * calling, char * date, char *file); void vlg_c_cdf (char * calling, char *file); void vlg_c_cdx (char * calling, int numcdd, char *file); void vlg_c_app (char * calling, char * called, char *file); static int vlg_cond (char * name, int condition, int cdd_true, int cdd_false) { if (condition) vlg_cpp_cdx (name, cdd_true); else vlg_cpp_cdx (name, cdd_false); return condition; } #ifdef __cplusplus }; #endif #endif