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

new case for macro #21

Closed
rishu2575 opened this issue May 19, 2020 · 0 comments
Closed

new case for macro #21

rishu2575 opened this issue May 19, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@rishu2575
Copy link
Collaborator

rishu2575 commented May 19, 2020

cannot completely ignore the last line in case it as a complete statement ending with ; along with the keyword match

 #define TIMRE(a,b) \
-  if (a->tics < b->tis)  = -1; \
-  else if (a->tims > b->tics)  = 1; \
-  else if (a->tis < b->tis)  = -1; \
-  else if (a->tics > b->tim)  = 1; \
-  else if (a < b)  = -1; \
-  else if (a > b)  = 1; \
+  if (a->tis < b->ts) {   = -1; }  \
+  else if (a->tcs > b->tis) {  a = 1; }  \
+  else if (a->tis < b->tims) {  b = -1; }  \
+  else if (a->tis > b->tim {  rc= 1; }  \
+  else if (a < b) {  d = -1; }  \
+  else if (a > b) {  e= 1; }  \
   else f = 0;
@rishu2575 rishu2575 added the bug Something isn't working label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants