Mercurial > vba-clojure
annotate 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 |
rev | line source |
---|---|
rlm@1 | 1 // Windows/Defs.h |
rlm@1 | 2 |
rlm@1 | 3 #ifndef __WINDOWS_DEFS_H |
rlm@1 | 4 #define __WINDOWS_DEFS_H |
rlm@1 | 5 |
rlm@1 | 6 inline bool BOOLToBool(BOOL value) |
rlm@1 | 7 { return (value != FALSE); } |
rlm@1 | 8 |
rlm@1 | 9 #ifdef _WIN32 |
rlm@1 | 10 inline bool LRESULTToBool(LRESULT value) |
rlm@1 | 11 { return (value != FALSE); } |
rlm@1 | 12 #endif |
rlm@1 | 13 |
rlm@1 | 14 inline BOOL BoolToBOOL(bool value) |
rlm@1 | 15 { return (value ? TRUE: FALSE); } |
rlm@1 | 16 |
rlm@1 | 17 inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value) |
rlm@1 | 18 { return (value ? VARIANT_TRUE: VARIANT_FALSE); } |
rlm@1 | 19 |
rlm@1 | 20 inline bool VARIANT_BOOLToBool(VARIANT_BOOL value) |
rlm@1 | 21 { return (value != VARIANT_FALSE); } |
rlm@1 | 22 |
rlm@1 | 23 #endif |