dasm-assembler / dasm-assembler/dasm
Support for #elif directive
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C
- Stars
- 257
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
The code below doesn't show an error, but the #elif directive just seem to be ignored.
#if MODE == 1
include "file1.asm"
#elif MODE == 2
include "file2.asm"
#else
include "file3.asm"
#endif
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied MODE/#if example and tracing how the assembler handles conditional-preprocessor directives. Confirm that MODE 2 selects file2.asm, while MODE 1 and the fallback select file1.asm and file3.asm respectively; the payload names no source files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100