| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 67dba57 commit 5796631
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -268,14 +268,6 @@ inline napi_status napi_set_last_error(napi_env env, | |||
| 268 | 268 | } \ | |
| 269 | 269 | } while (0) | |
| 270 | 270 | ||
| 271 | - #define RETURN_STATUS_IF_FALSE_WITH_PREAMBLE(env, condition, status) \ | ||
| 272 | - do { \ | ||
| 273 | - if (!(condition)) { \ | ||
| 274 | - return napi_set_last_error( \ | ||
| 275 | - (env), try_catch.HasCaught() ? napi_pending_exception : (status)); \ | ||
| 276 | - } \ | ||
| 277 | - } while (0) | ||
| 278 | - | ||
| 279 | 271 | #define CHECK_MAYBE_EMPTY_WITH_PREAMBLE(env, maybe, status) \ | |
| 280 | 272 | RETURN_STATUS_IF_FALSE_WITH_PREAMBLE((env), !((maybe).IsEmpty()), (status)) | |
| 281 | 273 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments