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

Implement preprocessing #4

Open
2 of 3 tasks
Krzmbrzl opened this issue Feb 27, 2019 · 2 comments
Open
2 of 3 tasks

Implement preprocessing #4

Krzmbrzl opened this issue Feb 27, 2019 · 2 comments
Assignees

Comments

@Krzmbrzl
Copy link
Owner

Krzmbrzl commented Feb 27, 2019

This includes

  • Implementing full preprocessing
  • Implementing dummy-preprocessing that will only extract the names of macro-definitions
  • Writing test-cases
@Krzmbrzl Krzmbrzl self-assigned this Feb 27, 2019
@kayler-renslow
Copy link
Collaborator

kayler-renslow commented Mar 12, 2019

Tests to write for preprocessor

  • #define MACRO(a,b) a=b
  • #define MACRO x
  • #define STRINGIFY(s) #s
  • #include <>
  • #include ""
  • #undef
  • #ifdef
  • #else
  • #ifndef
  • S##MergedWithMacro
  • #define GLUE(g1,g2) g1##g2
  • multiline macro using \

@Krzmbrzl
Copy link
Owner Author

Krzmbrzl commented Mar 13, 2019

Afaik there is no #include <bla> in Arma (so you can only use quotes for includes)

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