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

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

#1 add codec module (bin <-> hex-string)

File size: 429 bytes
Line 
1/**
2 * @file cf_local.h
3 * @author myusgun <myusgun@gmail.com>
4 */
5#ifndef __CF_LOCAL_H__
6#define __CF_LOCAL_H__
7
8#define TRY do
9#define TRY_BREAK break
10#define NO_CATCH while (0)
11#define CATCH_IF(__expr) NO_CATCH; if (__expr)
12#define CATCH_ELSE_IF(__expr) else if (__expr)
13#define CATCH_ELSE else
14
15#if defined(_WIN32) || defined(_WIN64)
16# define snprintf _snprintf
17#else
18#endif
19
20#endif // #ifndef __CF_LOCAL_H__
Note: See TracBrowser for help on using the repository browser.