| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d89f593 commit 969a520
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,10 +70,12 @@ struct napi_env__ { | |||
| 70 | 70 | } \ | |
| 71 | 71 | } while (0) | |
| 72 | 72 | ||
| 73 | - #define CHECK_ENV(env) \ | ||
| 74 | - if ((env) == nullptr) { \ | ||
| 75 | - return napi_invalid_arg; \ | ||
| 76 | - } | ||
| 73 | + #define CHECK_ENV(env) \ | ||
| 74 | + do { \ | ||
| 75 | + if ((env) == nullptr) { \ | ||
| 76 | + return napi_invalid_arg; \ | ||
| 77 | + } \ | ||
| 78 | + } while (0) | ||
| 77 | 79 | ||
| 78 | 80 | #define CHECK_ARG(env, arg) \ | |
| 79 | 81 | RETURN_STATUS_IF_FALSE((env), ((arg) != nullptr), napi_invalid_arg) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments