mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-10-30 17:23:51 +01:00 
			
		
		
		
	Ensures that all files that Git considers to be text will have normalized (LF) line endings in the repository. When core.eol is set to native (which is the default), Git will convert the line endings of normalized files in your working directory back to your platform's native line ending. See also https://git-scm.com/docs/gitattributes
		
			
				
	
	
		
			26 lines
		
	
	
		
			457 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			457 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
| #include "stdarg.h"
 | |
| #include "stdio.h"
 | |
| 
 | |
| #ifdef __linux__
 | |
| #define _vsnprintf vsnprintf
 | |
| #elif defined(__MACH__)
 | |
| #define _vsnprintf vsnprintf
 | |
| #else
 | |
| #include "crtdbg.h"
 | |
| #endif
 | |
| 
 | |
| void trace(char *format, ...)
 | |
| {
 | |
|     char msg[256];
 | |
|     va_list args;
 | |
|     va_start(args, format);
 | |
|     _vsnprintf(msg, 256, format, args);
 | |
|     va_end(args);
 | |
| 
 | |
| #if defined(_DEBUG) && !defined(__linux__)
 | |
|     _CrtDbgReport(_CRT_WARN, NULL, NULL, NULL, msg);
 | |
| #else
 | |
|     printf(msg);
 | |
| #endif
 | |
| }
 |