Is there any easy and straight way to strip-out all the logging calls in NDK when in release mode?
Asked
Active
Viewed 273 times
0
-
1This is what I do: http://stackoverflow.com/questions/11190469/android-app-crashes-suddenly-while-running/11271063#11271063 – Turix Jul 19 '12 at 07:14
1 Answers
1
See https://stackoverflow.com/a/2025764/78496 for how to do it on iOS. The principle is the same.
You can set a flag in your Makefile using
LOCAL_CFLAGS += -DDEBUG_ON