mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	Add the %map() function which can apply arguments to a macro from a list. Allow the user to specify the desired radix for an evaluated parameter. It doesn't make any direct difference, but can be nice for debugging or turning into strings. As part of this, split expand_one_smacro() into two parts: parameter parsing and macro expansion. This is a very straightforward splitting of two mostly unrelated pieces of functionality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
		
			
				
	
	
		
			7 lines
		
	
	
		
			109 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			109 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
| 	bits 32
 | |
| start:
 | |
| 	nop
 | |
| %warning We are at %hex($-$$)
 | |
| ;%warning We are at %hex($)
 | |
| %warning We are at %hex($-$$)
 |