Skip to content

Instantly share code, notes, and snippets.

@russell-shizhen
Last active July 9, 2018 08:19
Show Gist options
  • Save russell-shizhen/2f2948f549d0c583ef67b05392e64ed8 to your computer and use it in GitHub Desktop.
Save russell-shizhen/2f2948f549d0c583ef67b05392e64ed8 to your computer and use it in GitHub Desktop.
inline a c function for Android NDK clang compiler
static inline __attribute__((always_inline)) void foo() {
}
@russell-shizhen
Copy link
Author

russell-shizhen commented Jul 9, 2018

always_inline is necessary here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment