@@ -66,24 +66,22 @@ ARC_ENV_DECL_GET_PRINT_STREAM(id) {
66
66
// eltBits: Number of bits per element
67
67
// oobAddr: Referenced address outside of array bounds
68
68
// oobIdx: Out-of-bounds index
69
- // Return value: Pointer to new the result value of the array_get operation
70
- #define ARC_HANDLER_ARRAY_GET_OOB_HANDLER (base, size, eltBits, oobAddr, \
71
- oobIdx) \
72
- const void *_arc_env_array_get_oob_handler ( \
69
+ // Return value: Pointer to the new result value of the array_get operation
70
+ #define ARC_ENV_DECL_ARRAY_GET_OOB_HANDLER (base, size, eltBits, oobAddr, \
71
+ oobIdx) \
72
+ ARC_EXPORT const void *_arc_env_array_get_oob_handler ( \
73
73
const void *base, uint64_t size, uint32_t eltBits, const void *oobAddr, \
74
74
uint64_t oobIdx)
75
75
76
76
#ifndef ARC_NO_DEFAULT_ARRAY_GET_OOB_HANDLER
77
77
#include < iostream>
78
- extern " C" {
79
- ARC_HANDLER_ARRAY_GET_OOB_HANDLER (base, as, eb, oa, oi) {
78
+ ARC_ENV_DECL_ARRAY_GET_OOB_HANDLER (base, as, eb, oa, oi) {
80
79
(void )eb;
81
80
(void )oa;
82
81
std::cerr << " ARCENV-WARNING: Out-of-bounds array access caught: Index = "
83
82
<< oi << " , Size = " << as << " , Base = " << base << std::endl;
84
83
return base;
85
84
}
86
- }
87
85
#endif // ARC_NO_DEFAULT_ARRAY_GET_OOB_HANDLER
88
86
89
87
// ----------------
0 commit comments