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

Constant arguments can now propogate into function call instances #182

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JulianKemmerer
Copy link
Owner

Final testing ...

…new version of function is rendered for each combination of constant args, in prep for supporting the same constants provided as template args
@JulianKemmerer JulianKemmerer self-assigned this Nov 6, 2023
@JulianKemmerer
Copy link
Owner Author

Broken still ✊

#include "uintN_t.h"
#pragma MAIN main
uint16_t foo(uint16_t x, uint8_t y)
{
  return x + y;
}
uint16_t bar(uint16_t x, uint8_t y)
{
  return x - y;
}

uint16_t main(uint16_t x, uint8_t y)
{
  return foo(bar(x,y), 1);
}

and different for foo(foo(x,y), 1);

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

Successfully merging this pull request may close these issues.

None yet

1 participant