Update overlay-demo.c
This commit is contained in:
@@ -27,7 +27,7 @@ void show(char *name)
|
|||||||
** rather place the all the code of certain source files into the overlay by
|
** rather place the all the code of certain source files into the overlay by
|
||||||
** compiling them with --code-name OVERLAY1.
|
** compiling them with --code-name OVERLAY1.
|
||||||
*/
|
*/
|
||||||
#pragma code-name(push, "OVERLAY1");
|
#pragma code-name(push, "OVERLAY1")
|
||||||
|
|
||||||
void foo(void)
|
void foo(void)
|
||||||
{
|
{
|
||||||
@@ -39,27 +39,27 @@ void foo(void)
|
|||||||
show("One");
|
show("One");
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma code-name(pop);
|
#pragma code-name(pop)
|
||||||
|
|
||||||
|
|
||||||
#pragma code-name(push, "OVERLAY2");
|
#pragma code-name(push, "OVERLAY2")
|
||||||
|
|
||||||
void bar(void)
|
void bar(void)
|
||||||
{
|
{
|
||||||
show("Two");
|
show("Two");
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma code-name(pop);
|
#pragma code-name(pop)
|
||||||
|
|
||||||
|
|
||||||
#pragma code-name(push, "OVERLAY3");
|
#pragma code-name(push, "OVERLAY3")
|
||||||
|
|
||||||
void foobar (void)
|
void foobar (void)
|
||||||
{
|
{
|
||||||
show("Three");
|
show("Three");
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma code-name(pop);
|
#pragma code-name(pop)
|
||||||
|
|
||||||
|
|
||||||
void main(int /*argc*/, char *argv[])
|
void main(int /*argc*/, char *argv[])
|
||||||
|
|||||||
Reference in New Issue
Block a user