-
-
Save jdub/58f9ebd7703358cf6f58ea39950dea68 to your computer and use it in GitHub Desktop.
This file contains 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 <stdio.h> | |
#include "pants.h" | |
int | |
main() { | |
printf("Hello World\n"); | |
pants(); | |
} |
This file contains 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
extern { | |
fn pants(); | |
} | |
fn main() { | |
println!("Hello World"); | |
unsafe { pants(); } | |
} |
This file contains 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 <stdio.h> | |
#include "pants.h" | |
#include "shirt.h" | |
#include "socks.h" | |
inline void | |
pants() { | |
printf("Hello Pants\n"); | |
shirt(); | |
socks(); | |
} |
This file contains 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
//__attribute__((always_inline)) | |
void pants(); |
This file contains 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 <stdio.h> | |
//__attribute__((always_inline)) | |
static inline void shirt() { | |
printf("Hello Shirt\n"); | |
} |
This file contains 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 <stdio.h> | |
#include "socks.h" | |
inline void | |
socks() { | |
printf("Hello Socks\n"); | |
} |
This file contains 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
//__attribute__((always_inline)) | |
void socks(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment