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

Add macro to records snippets #55

Open
agaget opened this issue Aug 2, 2021 · 0 comments
Open

Add macro to records snippets #55

agaget opened this issue Aug 2, 2021 · 0 comments
Assignees

Comments

@agaget
Copy link

agaget commented Aug 2, 2021

It can be interesting for macros standard to add standard macro:
Ex:
For the ao for now we have

record(ao, "record_name") {
    field(DESC, "description")
    field(PREC, "3")
    field(EGU,  "Volts")
    field(DRVL, "-10")
    field(DRVH, "+10")
    field(VAL,  "0.000")
}

we could have :

record(ao, "record_name") {
    field(DESC, "description")
    field(PREC, "$(PREC=3)")
    field(EGU,  "$(EGU=Volts)")
    field(DRVL, "$(DRVL=-10)")
    field(DRVH, "$(DRVH=+10)")
    field(VAL,  "$(VAL=0)")
}

Note that following macro could also work. The record can be used directly but less an example than the previous proposition
field(DRVH, "$(DRVH=")

(can work for other records)

@vnadot vnadot self-assigned this Oct 8, 2021
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

2 participants