Created
March 11, 2019 08:28
-
-
Save kaityo256/a77e0645858abbda73d34cbb94125d72 to your computer and use it in GitHub Desktop.
weak attribute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "test.hpp" | |
| int main(){ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "test.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <iostream> | |
| struct Hoge { | |
| Hoge() { | |
| std::cout << "Hoge" << std::endl; | |
| } | |
| }; | |
| __attribute__((weak)) Hoge h; |
Author
kaityo256
commented
Mar 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment