You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
237 B
17 lines
237 B
4 months ago
|
|
||
|
// function aliases
|
||
|
|
||
|
void main_func(void);
|
||
|
void alias_func(void) __attribute__((weak, alias("main_func")));
|
||
|
|
||
|
void main_func(void)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
// variables aliases
|
||
|
|
||
|
int main_var;
|
||
|
extern int alias_var __attribute__((weak, alias("main_var")));
|
||
|
|