Skip to content

User overridable setup, loop and main through __attribute__((weak)) #1141

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

Closed
wants to merge 1 commit into from
Closed

User overridable setup, loop and main through __attribute__((weak)) #1141

wants to merge 1 commit into from

Conversation

cipriancraciun
Copy link

Following the same pattern as in the case of serialEvent, I've done the following:

  • provide an empty implementation of the setup and loop functions;
  • mark all three functions (setup, loop and main) as __attribute__ ((weak))
    so that the user is able to override them with customized versions;

See issue #1138

(This is another variant of the pull request #1139)

…eak))`

Following the same pattern as in the case of `serialEvent`, I've done the following:
 * provide an empty implementation of the `setup` and `loop` functions;
 * mark all three functions (`setup`, `loop` and `main`) as `__attribute__ ((weak))`
  so that the user is able to override them with customized versions;

See issue #1138
@cmaglie
Copy link
Member

cmaglie commented Feb 6, 2013

Closed.
Look #1139 for details.

@cmaglie cmaglie closed this Feb 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Related to the code for the standard Arduino API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants