Mercurial > vba-linux
view src/win32/7zip/7z/CPP/Windows/Defs.h @ 5:8fe0c57e53d2
concentrating on lua first
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:39:40 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 // Windows/Defs.h3 #ifndef __WINDOWS_DEFS_H4 #define __WINDOWS_DEFS_H6 inline bool BOOLToBool(BOOL value)7 { return (value != FALSE); }9 #ifdef _WIN3210 inline bool LRESULTToBool(LRESULT value)11 { return (value != FALSE); }12 #endif14 inline BOOL BoolToBOOL(bool value)15 { return (value ? TRUE: FALSE); }17 inline VARIANT_BOOL BoolToVARIANT_BOOL(bool value)18 { return (value ? VARIANT_TRUE: VARIANT_FALSE); }20 inline bool VARIANT_BOOLToBool(VARIANT_BOOL value)21 { return (value != VARIANT_FALSE); }23 #endif