00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef Y2Logger_h
00024 #define Y2Logger_h
00025
00026 #include <ycp/y2log.h>
00027
00028
00029
00030
00031 #define Y2_RETURN_FALSE(format,args...) \
00032 do { ycp2error(format,##args); return false; } while(0)
00033
00034 #define Y2_RETURN_VOID(format,args...) \
00035 do { ycp2error(format,##args); return YCPNull(); } while(0)
00036
00037 #define Y2_RETURN_STR(format,args...) \
00038 do { ycp2error(format,##args); return ""; } while(0)
00039
00040 #define Y2_RETURN_YCP_FALSE(format,args...) \
00041 do { ycp2error(format,##args); return YCPBoolean(false); } while(0)
00042
00043 #endif