Mobile API Reference  MicroStrategy 2019
StaticCheck.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : StaticCheck.h
3 // AUTHOR : Cezary Raczko
4 // CREATION : 4/4/03
5 // Copyright (C) MicroStrategy Incorporated 2003
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MBase_StaticCheck_h
9 #define MBase_StaticCheck_h
10 
12 // The Loki Library
13 // Copyright (c) 2001 by Andrei Alexandrescu
14 // This code accompanies the book:
15 // Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design
16 // Patterns Applied". Copyright (c) 2001. Addison-Wesley.
17 // Permission to use, copy, modify, distribute and sell this software for any
18 // purpose is hereby granted without fee, provided that the above copyright
19 // notice appear in all copies and that both that copyright notice and this
20 // permission notice appear in supporting documentation.
21 // The author or Addison-Wesley Longman make no representations about the
22 // suitability of this software for any purpose. It is provided "as is"
23 // without express or implied warranty.
25 
26 namespace Base
27 {
28 #ifdef __hpux
29 #else
30  template<bool> struct CompileTimeChecker;
31  template<> struct CompileTimeChecker<true>
32  {
33  typedef void type;
34  };
35 #endif
36 }
37 
44 #define STATIC_CHECK(expr) typedef char ERROR_5B84D18BADD040F6B55A64F8BCF5A3EA[1][(expr) ? 1 : 0]
45 
46 #endif // MBase_StaticCheck_h
void type
Definition: StaticCheck.h:33
Definition: StaticCheck.h:30
Definition: StaticCheck.h:26