Products Support Documentation Download
psptypes-win.h
Go to the documentation of this file.
1 /*
2  * Raima Database Manager
3  *
4  * Copyright (C) 2016 Raims Inc., All rights reserved.
5  *
6  * Use of this software, whether in source code format, or in executable,
7  * binary object code form, is governed by the Raima LICENSE which
8  * is fully described in the LICENSE.TXT file, included within this
9  * distribution of files.
10  */
11 
16 #ifndef RDM_DOXYGEN
17 #ifndef PSPTYPES_WIN_H
18 #define PSPTYPES_WIN_H
19 
20 #if defined(RDM_CPP_BUILD)
21 #define PUBLIC_CLASS RDM_EXPORT
22 #else
23 #define PUBLIC_CLASS RDM_IMPORT
24 #endif
25 
26 #include <stdint.h>
27 
28 #if !defined(RDM_UNREF) && defined(_MSC_VER) && _MSC_VER < 1800
29 #define RDM_UNREF(a)
30 #endif
31 
32 #define RDM_64BIT_CODE RDM_T("I64")
33 #define RDM_64BIT_CODE_A "I64"
34 
35 /* RDM_STARTUP_EXAMPLE_CR we want to prompt the user upon termination */
36 #define RDM_STARTUP_EXAMPLE_CR(name) \
37  int32_t name##_main(int32_t argc, const char *const *argv); \
38  int main(int32_t argc, const char *const *argv) { \
39  int32_t status = EXIT_FAILURE; \
40  \
41  RDM_STARTUP_HOOK \
42  status = name##_main(argc, argv); \
43  puts("Press RETURN to exit."); \
44  (void) getchar(); \
45  RDM_SHUTDOWN_HOOK \
46  \
47  return status; \
48  }
49 
50 #endif
51 #endif