mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	Along with C and other languages, the current trend is to be able to probe for features rather than relying on version numbers. This is motivated in part by the intent of bumping the major version number to 3. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			252 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			252 B
		
	
	
	
		
			NASM
		
	
	
	
	
	
| %macro dir 1
 | |
| 	%assign y %isdirective(%1)
 | |
| 	%xdefine c %cond(y,YES,NO)
 | |
| 	db "Directive ", %str(%1), %cond(y,""," not"), ` valid\r\n`
 | |
| %endmacro
 | |
| 
 | |
| 	dir db
 | |
| 	dir %iffile
 | |
| 	dir iffile
 | |
| 	dir [%iffile]
 | |
| 	dir [extern]
 | |
| 	dir extern
 | |
| 	dir %extern
 | |
| 	dir org
 | |
| 	dir uppercase
 |