You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							392 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							392 B
						
					
					
				
								// User modifiable memory allocator.
							 | 
						|
								
							 | 
						|
								#ifndef _CL_MALLOC_H
							 | 
						|
								#define _CL_MALLOC_H
							 | 
						|
								
							 | 
						|
								#include <cstdlib>
							 | 
						|
								
							 | 
						|
								namespace cln {
							 | 
						|
								
							 | 
						|
								// Function like malloc() which returns aligned memory of size (> 0) bytes.
							 | 
						|
								extern void* (*malloc_hook) (size_t size);
							 | 
						|
								// Function like free() which makes available for reuse such memory.
							 | 
						|
								extern void (*free_hook) (void* ptr);
							 | 
						|
								
							 | 
						|
								}  // namespace cln
							 | 
						|
								
							 | 
						|
								#endif /* _CL_MALLOC_H */
							 |