source: libcf/trunk/src/cf_local.h@ 12

Last change on this file since 12 was 12, checked in by cheese, 11 years ago

#1 implement logging module

File size: 301 bytes
Line 
1/*
2 * cf_local.h
3 */
4#ifndef __CF_LOCAL_H__
5#define __CF_LOCAL_H__
6
7#define TRY do
8#define TRY_BREAK break
9#define NO_CATCH while (0)
10#define CATCH_IF(__expr) NO_CATCH; if (__expr)
11#define CATCH_ELSE_IF(__expr) else if (__expr)
12#define CATCH_ELSE else
13
14#endif // #ifndef __CF_LOCAL_H__
Note: See TracBrowser for help on using the repository browser.