Skip to content

Instantly share code, notes, and snippets.

// from https://stackoverflow.com/questions/10798357/want-to-compile-native-android-binary-i-can-run-in-terminal-on-the-phone
/*
# create tool-chain - one line
# New method in ndk 12.
$NDK/build/tools/make_standalone_toolchain.py --arch arm --install-dir=/tmp/my-android-toolchain
# Old method.
#$NDK/build/tools/make-standalone-toolchain.sh --platform=android-3 --install-dir=/tmp/my-android-toolchain
# add to terminal PATH variable
export PATH=/tmp/my-android-toolchain/bin:$PATH
@qeedquan
qeedquan / stringify.c
Created July 16, 2017 17:42
Using macro to create a multiline string
// how to do make a string out of multiple lines
// using the preprocessor
#include <stdio.h>
#define STRINGIFY(...) #__VA_ARGS__
int
main(void)
{