/****************************************************************************
**  SCALASCA    http://www.scalasca.org/                                   **
*****************************************************************************
**  Copyright (c) 1998-2012                                                **
**  Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre          **
**                                                                         **
**  Copyright (c) 2003-2008                                                **
**  University of Tennessee, Innovative Computing Laboratory               **
**                                                                         **
**  See the file COPYRIGHT in the package base directory for details       **
****************************************************************************/

#ifndef _ELG_USER_H
#define _ELG_USER_H

#ifdef __cplusplus
#   define EXTERN extern "C" 
#else
#   define EXTERN extern 
#endif

/*
 *-----------------------------------------------------------------------------
 *
 *  EPILOG Library (Event Processing, Investigating, and Logging)
 *
 *  - User Instrumentation
 * 
 *-----------------------------------------------------------------------------
 */

#ifdef EPILOG

  #define EPIK EPILOG
  #include "epik_user.h"

  #ifdef __cplusplus
    #define ELG_TRACER(n)   EPIK_TRACER(n)
  #endif

  #define ELG_USER_START(n) EPIK_USER_START(n)
  #define ELG_USER_END(n)   EPIK_USER_END(n)

#else
  #define ELG_USER_START(n)
  #define ELG_USER_END(n)
  #define ELG_TRACER(n)
#endif

#endif
