icedb  version 0.5.1
Snow particle scattering database API
Macros | Functions
defs.h File Reference
#include <stddef.h>
Include dependency graph for defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ICEDB_H_DEFS
 
#define __STDC_WANT_LIB_EXT1__   1
 
#define ICEDB_BEGIN_DECL
 
#define ICEDB_END_DECL
 
#define ICEDB_BEGIN_DECL_C
 
#define ICEDB_END_DECL_C
 
#define ICEDB_CALL_C
 
#define ICEDB_BEGIN_DECL_CPP   extern "CPP" {
 
#define ICEDB_END_DECL_CPP   }
 
#define ICEDB_CALL_CPP   extern "CPP"
 
#define COMPILER_EXPORTS_VERSION_UNKNOWN
 
#define SHARED_EXPORT_ICEDB
 
#define SHARED_IMPORT_ICEDB
 
#define HIDDEN_ICEDB
 
#define PRIVATE_ICEDB
 
#define ICEDB_OS_UNSUPPORTED
 
#define DL_ICEDB   SHARED_EXPORT_ICEDB
 
#define ICEDB_SYMBOL_SHARED   DL_ICEDB
 
#define ICEDB_SYMBOL_PRIVATE   HIDDEN_ICEDB
 
#define ICEDB_WIDEN2(x)   L ## x
 
#define ICEDB_WIDEN(x)   ICEDB_WIDEN2(x)
 
#define ICEDB_DEBUG_RAISE_EXCEPTION()   ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC( ICEDB_WIDEN(__FILE__), (int)__LINE__, ICEDB_WIDEN(ICEDB_DEBUG_FSIG));
 
#define ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER   ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A
 
#define ICEDB_GLOBAL_ERROR_TODO   999
 
#define _CRT_SECURE_NO_WARNINGS
 
#define ICEDB_OUT
 Pointer to an object that is modfied by a function. More...
 
#define ICEDB_OPTIONAL
 Denotes an 'optional' parameter (one which can be replaced with a NULL or nullptr) More...
 
#define _HAS_AUTO_PTR_ETC   (!_HAS_CXX17)
 

Functions

ICEDB_SYMBOL_SHARED void ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A (const char *, int, const char *)
 
ICEDB_SYMBOL_SHARED void ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC (const wchar_t *, int, const wchar_t *)
 

Macro Definition Documentation

◆ __STDC_WANT_LIB_EXT1__

#define __STDC_WANT_LIB_EXT1__   1

Definition at line 4 of file defs.h.

◆ _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS

Definition at line 161 of file defs.h.

◆ _HAS_AUTO_PTR_ETC

#define _HAS_AUTO_PTR_ETC   (!_HAS_CXX17)

Definition at line 192 of file defs.h.

◆ COMPILER_EXPORTS_VERSION_UNKNOWN

#define COMPILER_EXPORTS_VERSION_UNKNOWN

Definition at line 66 of file defs.h.

◆ DL_ICEDB

#define DL_ICEDB   SHARED_EXPORT_ICEDB

Definition at line 124 of file defs.h.

Referenced by icedb::malloc(), and icedb::error::stringify().

◆ HIDDEN_ICEDB

#define HIDDEN_ICEDB

Definition at line 72 of file defs.h.

◆ ICEDB_BEGIN_DECL

#define ICEDB_BEGIN_DECL

Definition at line 11 of file defs.h.

Referenced by ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A().

◆ ICEDB_BEGIN_DECL_C

#define ICEDB_BEGIN_DECL_C

Definition at line 20 of file defs.h.

Referenced by icedb::versioning::getLibVersionInfo().

◆ ICEDB_BEGIN_DECL_CPP

#define ICEDB_BEGIN_DECL_CPP   extern "CPP" {

Definition at line 30 of file defs.h.

◆ ICEDB_CALL_C

#define ICEDB_CALL_C

Definition at line 22 of file defs.h.

◆ ICEDB_CALL_CPP

#define ICEDB_CALL_CPP   extern "CPP"

Definition at line 32 of file defs.h.

◆ ICEDB_DEBUG_RAISE_EXCEPTION

#define ICEDB_DEBUG_RAISE_EXCEPTION ( )    ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC( ICEDB_WIDEN(__FILE__), (int)__LINE__, ICEDB_WIDEN(ICEDB_DEBUG_FSIG));

◆ ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER

#define ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER   ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A

Definition at line 153 of file defs.h.

◆ ICEDB_END_DECL

#define ICEDB_END_DECL

Definition at line 12 of file defs.h.

Referenced by icedb::_free().

◆ ICEDB_END_DECL_C

#define ICEDB_END_DECL_C

Definition at line 21 of file defs.h.

Referenced by ICEDB_CompareVersions(), and ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A().

◆ ICEDB_END_DECL_CPP

#define ICEDB_END_DECL_CPP   }

Definition at line 31 of file defs.h.

◆ ICEDB_GLOBAL_ERROR_TODO

#define ICEDB_GLOBAL_ERROR_TODO   999

Definition at line 155 of file defs.h.

◆ ICEDB_H_DEFS

#define ICEDB_H_DEFS

Definition at line 3 of file defs.h.

◆ ICEDB_OPTIONAL

#define ICEDB_OPTIONAL

Denotes an 'optional' parameter (one which can be replaced with a NULL or nullptr)

Definition at line 183 of file defs.h.

◆ ICEDB_OS_UNSUPPORTED

#define ICEDB_OS_UNSUPPORTED

Definition at line 106 of file defs.h.

◆ ICEDB_OUT

#define ICEDB_OUT

Pointer to an object that is modfied by a function.

Definition at line 181 of file defs.h.

◆ ICEDB_SYMBOL_PRIVATE

#define ICEDB_SYMBOL_PRIVATE   HIDDEN_ICEDB

Definition at line 128 of file defs.h.

◆ ICEDB_SYMBOL_SHARED

#define ICEDB_SYMBOL_SHARED   DL_ICEDB

Definition at line 127 of file defs.h.

◆ ICEDB_WIDEN

#define ICEDB_WIDEN (   x)    ICEDB_WIDEN2(x)

Definition at line 147 of file defs.h.

◆ ICEDB_WIDEN2

#define ICEDB_WIDEN2 (   x)    L ## x

Definition at line 146 of file defs.h.

◆ PRIVATE_ICEDB

#define PRIVATE_ICEDB

Definition at line 73 of file defs.h.

◆ SHARED_EXPORT_ICEDB

#define SHARED_EXPORT_ICEDB

Definition at line 70 of file defs.h.

◆ SHARED_IMPORT_ICEDB

#define SHARED_IMPORT_ICEDB

Definition at line 71 of file defs.h.

Function Documentation

◆ ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A()

ICEDB_SYMBOL_SHARED void ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A ( const char *  ,
int  ,
const char *   
)

Definition at line 113 of file util.cpp.

References ICEDB_BEGIN_DECL, ICEDB_COMPAT_fprintf_s, and ICEDB_END_DECL_C.

114 {
115  ICEDB_COMPAT_fprintf_s(stderr, "Exception raised in file %s, line %d, function %s.\n", file, line, fsig);
116 
117 #ifdef _WIN32
118  DebugBreak();
119 #else
120  raise(SIGTRAP);
121  exit(999);
122 #endif
123 }
#define ICEDB_COMPAT_fprintf_s
Definition: util.h:26

◆ ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC()

ICEDB_SYMBOL_SHARED void ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC ( const wchar_t *  ,
int  ,
const wchar_t *   
)

Definition at line 102 of file util.cpp.

References ICEDB_COMPAT_fwprintf_s.

103 {
104  ICEDB_COMPAT_fwprintf_s(stderr, L"Exception raised in file %s, line %d, function %s.\n", file, line, fsig);
105 
106 #ifdef _WIN32
107  DebugBreak();
108 #else
109  raise(SIGTRAP);
110  exit(999);
111 #endif
112 }
#define ICEDB_COMPAT_fwprintf_s
Definition: util.h:27