Julian Eisel  
		
	
	280dac323c 
	
	
	Blenlib: Add BLI_assert_msg() for printing an extra string if the assert fails  
		
			... 
			It always bothered me that we'd do the `BLI_assert(... || !"message")` trick to
print a message alongside the assert, while it should be trivial to have a way
to pass an extra string as additional argument.
This adds `BLI_assert_msg()` with a second argument for a message. E.g.:
```
BLI_assert_msg(
    params->rename_id == NULL,
    "File rename handling should immediately clear rename_id when done, because otherwise it will keep taking precedence over renamefile.");
```
On failure this will print like this:
```
0   Blender                             0x00000001140647a3 BLI_system_backtrace + 291
[...]
13  Blender                             0x00000001092647a6 main + 3814
14  libdyld.dylib                       0x00007fff203d8f5d start + 1
BLI_assert failed: source/blender/editors/space_file/file_ops.c:2352, file_directory_new_exec(), at 'params->rename_id == ((void*)0)'
  File rename handling should immediately clear rename_id when done, because otherwise it will keep taking precedence over renamefile.
```
Reviewed by: Sybren Stüvel, Jacques Lucke, Sergey Sharybin, Campbell Barton
Differential Revision: https://developer.blender.org/D11827  
		
	 
 
		2021-07-12 11:46:24 +02:00 
	 
	
	
	
		  ..
	 
	
	
		
			
			
			
			
			
			2021-07-12 11:46:24 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-09 13:35:54 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 18:42:21 +02:00 
		 
	
		
			
			
			
			
			
			2021-02-02 19:34:47 +11:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-09 13:37:52 +10:00 
		 
	
		
			
			
			
			
			
			2021-06-26 21:50:48 +10:00 
		 
	
		
			
			
			
			
			
			2021-03-20 15:42:35 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-29 19:11:17 -06:00 
		 
	
		
			
			
			
			
			
			2021-07-12 11:46:24 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-11-03 16:35:44 +03:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-26 21:50:48 +10:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2021-04-23 10:07:06 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-17 12:39:08 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-20 20:57:22 -04:00 
		 
	
		
			
			
			
			
			
			2020-08-07 10:04:57 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-11 14:59:05 +01:00 
		 
	
		
			
			
			
			
			
			2021-01-11 14:59:05 +01:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-30 16:42:19 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-30 16:42:19 +10:00 
		 
	
		
			
			
			
			
			
			2021-06-10 21:10:28 +10:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2021-01-04 17:38:11 +11:00 
		 
	
		
			
			
			
			
			
			2021-07-08 19:54:09 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-10 16:51:09 +10:00 
		 
	
		
			
			
			
			
			
			2021-03-14 22:36:35 -04:00 
		 
	
		
			
			
			
			
			
			2021-05-03 12:29:17 -05:00 
		 
	
		
			
			
			
			
			
			2021-05-03 12:29:17 -05:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2021-07-07 13:42:46 +10:00 
		 
	
		
			
			
			
			
			
			2021-06-30 16:42:19 +10:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 18:42:21 +02:00 
		 
	
		
			
			
			
			
			
			2021-02-12 13:25:45 -06:00 
		 
	
		
			
			
			
			
			
			2021-05-13 14:14:14 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-02 08:28:46 -04:00 
		 
	
		
			
			
			
			
			
			2021-03-20 15:42:35 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-16 12:19:17 +01:00 
		 
	
		
			
			
			
			
			
			2021-04-09 14:49:32 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-16 17:13:46 +01:00 
		 
	
		
			
			
			
			
			
			2020-03-06 17:26:32 +01:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-13 12:58:02 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-18 09:36:44 +11:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-01 11:24:54 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-11-11 19:08:56 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-17 18:39:35 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-13 13:39:23 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-14 13:22:11 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-20 16:14:00 +11:00 
		 
	
		
			
			
			
			
			
			2020-08-28 10:04:26 -06:00 
		 
	
		
			
			
			
			
			
			2021-01-20 16:14:00 +11:00 
		 
	
		
			
			
			
			
			
			2021-05-21 10:25:47 +05:30 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2021-01-20 16:14:00 +11:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-28 11:01:06 -04:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2021-04-29 21:25:34 -05:00 
		 
	
		
			
			
			
			
			
			2021-01-20 16:14:00 +11:00 
		 
	
		
			
			
			
			
			
			2021-06-22 17:00:18 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2021-06-22 17:00:18 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-13 14:47:19 +10:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-13 14:47:19 +10:00 
		 
	
		
			
			
			
			
			
			2021-01-04 17:38:11 +11:00 
		 
	
		
			
			
			
			
			
			2021-07-05 13:02:16 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2021-03-07 18:13:19 -05:00 
		 
	
		
			
			
			
			
			
			2021-07-05 18:09:36 -04:00 
		 
	
		
			
			
			
			
			
			2021-01-15 12:17:11 +11:00 
		 
	
		
			
			
			
			
			
			2021-01-11 14:59:05 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-31 17:03:48 -04:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2020-11-06 12:32:54 +11:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 18:42:21 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-28 19:35:43 +10:00 
		 
	
		
			
			
			
			
			
			2020-12-02 15:38:47 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-17 23:57:16 +11:00 
		 
	
		
			
			
			
			
			
			2021-04-06 15:49:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-07 13:42:46 +10:00 
		 
	
		
			
			
			
			
			
			2021-03-25 16:01:41 +01:00 
		 
	
		
			
			
			
			
			
			2021-02-17 16:26:24 +01:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-07-04 00:43:40 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-19 23:56:12 +10:00 
		 
	
		
			
			
			
			
			
			2021-06-26 21:50:48 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-02-20 22:05:50 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-09 13:44:45 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-27 21:45:55 +11:00 
		 
	
		
			
			
			
			
			
			2021-03-08 14:44:57 +11:00 
		 
	
		
			
			
			
			
			
			2021-06-25 22:56:50 +02:00 
		 
	
		
			
			
			
			
			
			2021-02-05 16:23:34 +11:00 
		 
	
		
			
			
			
			
			
			2021-02-05 16:23:34 +11:00 
		 
	
		
			
			
			
			
			
			2021-06-24 15:59:34 +10:00 
		 
	
		
			
			
			
			
			
			2021-07-05 18:09:36 -04:00 
		 
	
		
			
			
			
			
			
			2021-06-26 21:50:48 +10:00 
		 
	
		
			
			
			
			
			
			2020-09-04 21:04:16 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-25 16:01:41 +01:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-28 13:16:32 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 10:10:37 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-07 20:04:00 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-13 13:39:23 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-28 14:28:52 -05:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-29 12:59:44 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-21 19:33:13 +01:00 
		 
	
		
			
			
			
			
			
			2021-02-05 16:23:34 +11:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-14 10:22:03 -07:00 
		 
	
		
			
			
			
			
			
			2021-07-08 13:21:22 +10:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00 
		 
	
		
			
			
			
			
			
			2020-08-07 09:50:34 +02:00