Mercurial > vba-clojure
comparison src/win32/7zip/7z/CPP/Windows/Defs.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // Windows/Defs.h | |
2 | |
3 #ifndef __WINDOWS_DEFS_H | |
4 #define __WINDOWS_DEFS_H | |
5 | |
6 inline bool BOOLToBool(BOOL value) | |
7 { return (value != FALSE); } | |
8 | |
9 #ifdef _WIN32 | |
10 inline bool LRESULTToBool(LRESULT value) | |
11 { return (value != FALSE); } | |
12 #endif | |
13 | |
14 inline BOOL BoolToBOOL(bool value) | |
15 { return (value ? TRUE: FALSE); } | |
16 | |
17 inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value) | |
18 { return (value ? VARIANT_TRUE: VARIANT_FALSE); } | |
19 | |
20 inline bool VARIANT_BOOLToBool(VARIANT_BOOL value) | |
21 { return (value != VARIANT_FALSE); } | |
22 | |
23 #endif |