include/CaptureDebug.h

Go to the documentation of this file.
00001 /*
00002  * CaptureCmdLine.h
00003  *
00004  * Copyright (c) 2011 Datapath Ltd.
00005  *
00006  * This file forms part of the Vision driver capture
00007  * application sample source code.
00008  *
00009  * Purpose: Declares capture app debug macros.
00010  *
00011  */
00012 
00013 #include <stdio.h>
00014 #include <stdlib.h>
00015 
00016 #ifdef CAPDEBUG
00017 #define CapDebug(fmt, arg...) \
00018 do \
00019 { \
00020    printf("%s: " fmt, __func__, ## arg); \
00021 } while(0);
00022 
00023 #define CapMessage(fmt, arg...) \
00024 do \
00025 { \
00026    printf("%s: " fmt, __func__, ## arg); \
00027 } while(0);
00028 
00029 #define CapLog(fmt, arg...) \
00030 do \
00031 { \
00032    printf("%s: " fmt, __func__, ## arg); \
00033 } while(0);
00034 
00035 #else
00036 #define CapDebug(fmt, arg...)
00037 #define CapMessage(fmt, arg...)
00038 
00039 #define CapLog(fmt, arg...) \
00040    do \
00041    { \
00042       printf(fmt, ## arg); \
00043    } while(0);
00044 
00045 #endif
00046 
00047 #define CapError(fmt, arg...) \
00048    do \
00049    { \
00050       printf(fmt, ## arg); \
00051    } while(0);

Generated on Fri Jan 20 10:36:56 2017 for Vision Utils by  doxygen 1.4.7