Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros hilite miss #2

Open
Alexey-T opened this issue Dec 4, 2016 · 0 comments
Open

Macros hilite miss #2

Alexey-T opened this issue Dec 4, 2016 · 0 comments

Comments

@Alexey-T
Copy link

Alexey-T commented Dec 4, 2016

e.g. macro like:

define(MACRO_EXP_CNT,1)dnl
define(CAPITAL,`
! expansion MACRO_EXP_CNT of `CAPITAL' macro, parameter is $1
	set	$1,%l0
	mov	%l0,%o0
	call	printf
	nop
	mov	%l0,%o0
	call	capital
	nop
	cmp	%l0,%o0
	beq	`next'MACRO_EXP_CNT
	nop
	mov	%o0,%o1
	set	errfmt,%o0
	call	printf
	nop
`next'MACRO_EXP_CNT:
	mov	%l0,%o0
	call	printf
	nop
define(`MACRO_EXP_CNT',eval(MACRO_EXP_CNT+1))dnl
')dnl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant