Lines Matching refs:env
10 #define GET_AND_THROW_LAST_ERROR(env) \
13 napi_get_last_error_info((env), &error_info); \
16 napi_is_exception_pending((env), &is_pending); \
22 napi_throw_error((env), NULL, error_message); \
28 #define FATALLY_FAIL_WITH_LAST_ERROR(env) \
31 napi_get_last_error_info((env), &error_info); \
39 #define NODE_API_ASSERT_BASE(env, assertion, message, ret_val) \
43 (env), \
61 #define NODE_API_ASSERT(env, assertion, message) \
62 NODE_API_ASSERT_BASE(env, assertion, message, NULL)
66 #define NODE_API_ASSERT_RETURN_VOID(env, assertion, message) \
67 NODE_API_ASSERT_BASE(env, assertion, message, NODE_API_RETVAL_NOTHING)
72 #define NODE_API_CALL_BASE(env, the_call, ret_val) \
75 GET_AND_THROW_LAST_ERROR((env)); \
80 #define NODE_API_NOGC_CALL_BASE(env, the_call, ret_val) \
83 FATALLY_FAIL_WITH_LAST_ERROR((env)); \
89 #define NODE_API_CALL(env, the_call) \
90 NODE_API_CALL_BASE(env, the_call, NULL)
93 #define NODE_API_CALL_RETURN_VOID(env, the_call) \
94 NODE_API_CALL_BASE(env, the_call, NODE_API_RETVAL_NOTHING)
96 #define NODE_API_NOGC_CALL_RETURN_VOID(env, the_call) \
97 NODE_API_NOGC_CALL_BASE(env, the_call, NODE_API_RETVAL_NOTHING)
107 #define NODE_API_ASSERT_STATUS(env, assertion, message) \
108 NODE_API_ASSERT_BASE(env, assertion, message, napi_generic_failure)
119 static inline void add_returned_status(napi_env env,
126 static inline void add_last_status(napi_env env,