forked from eden-emu/eden
		
	common: common_funcs: Log error on R_UNLESS.
This commit is contained in:
		
							parent
							
								
									cf3a05cf8c
								
							
						
					
					
						commit
						d685f12dbc
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -97,6 +97,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void); | |||
| #define R_UNLESS(expr, res)                                                                        \ | ||||
|     {                                                                                              \ | ||||
|         if (!(expr)) {                                                                             \ | ||||
|             if (res.IsError()) {                                                                   \ | ||||
|                 LOG_CRITICAL(Kernel, "Failed with error {}", res.raw);                             \ | ||||
|             }                                                                                      \ | ||||
|             return res;                                                                            \ | ||||
|         }                                                                                          \ | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bunnei
						bunnei