Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
error_codes_def.hpp File Reference
#include "error_codes_pp.hpp"
Include dependency graph for error_codes_def.hpp:

Go to the source code of this file.

Macros

#define SYS_VM_OPEN_NAMESPACE   namespace sysio::vm {
 
#define SYS_VM_CLOSE_NAMESPACE   }
 
#define PARSER_ERRORS(macro)
 
#define MEMORY_ERRORS(macro)
 
#define SYSTEM_ERRORS(macro)
 
#define AUXILIARY_ERRORS(macro)
 
#define _SYS_VM_ASSERT(expr, err_type)
 
#define SYS_VM_ASSERT_INVALIDATE(expr, err_type)
 

Macro Definition Documentation

◆ _SYS_VM_ASSERT

#define _SYS_VM_ASSERT ( expr,
err_type )
Value:
if (!UNLIKELY(expr)) { \
return err_type; \
}
#define UNLIKELY(x)

Definition at line 39 of file error_codes_def.hpp.

39#define _SYS_VM_ASSERT(expr, err_type) \
40 if (!UNLIKELY(expr)) { \
41 return err_type; \
42 }

◆ AUXILIARY_ERRORS

#define AUXILIARY_ERRORS ( macro)
Value:
macro(auxiliary_errors, checktime)

Definition at line 29 of file error_codes_def.hpp.

29#define AUXILIARY_ERRORS(macro) \
30 macro(auxiliary_errors, checktime)

◆ MEMORY_ERRORS

#define MEMORY_ERRORS ( macro)
Value:
macro(memory_errors, bad_alloc) \
macro(memory_errors, double_free)

Definition at line 21 of file error_codes_def.hpp.

21#define MEMORY_ERRORS(macro) \
22 macro(memory_errors, bad_alloc) \
23 macro(memory_errors, double_free)

◆ PARSER_ERRORS

#define PARSER_ERRORS ( macro)
Value:
macro(parser_errors, invalid_magic_number) \
macro(parser_errors, invalid_version) \
macro(parser_errors, invalid_section_id) \
macro(parser_errors, general_parsing_failure)

Definition at line 15 of file error_codes_def.hpp.

15#define PARSER_ERRORS(macro) \
16 macro(parser_errors, invalid_magic_number) \
17 macro(parser_errors, invalid_version) \
18 macro(parser_errors, invalid_section_id) \
19 macro(parser_errors, general_parsing_failure)

◆ SYS_VM_ASSERT_INVALIDATE

#define SYS_VM_ASSERT_INVALIDATE ( expr,
err_type )
Value:
if (_valid = false; !UNLIKELY(expr)) { \
return err_type; \
}

Definition at line 45 of file error_codes_def.hpp.

45#define SYS_VM_ASSERT_INVALIDATE(expr, err_type) \
46 if (_valid = false; !UNLIKELY(expr)) { \
47 return err_type; \
48 }

◆ SYS_VM_CLOSE_NAMESPACE

#define SYS_VM_CLOSE_NAMESPACE   }

Definition at line 4 of file error_codes_def.hpp.

◆ SYS_VM_OPEN_NAMESPACE

#define SYS_VM_OPEN_NAMESPACE   namespace sysio::vm {

Definition at line 3 of file error_codes_def.hpp.

◆ SYSTEM_ERRORS

#define SYSTEM_ERRORS ( macro)
Value:
macro(system_errors, constructor_failure) \
macro(system_errors, unimplemented_failure)

Definition at line 25 of file error_codes_def.hpp.

25#define SYSTEM_ERRORS(macro) \
26 macro(system_errors, constructor_failure) \
27 macro(system_errors, unimplemented_failure)