On Fri, Aug 08, 2014 at 10:29:59PM +0200, Felix Winkelmann wrote: > > If it's occasionally useful in general, we can put it behind a > > DEBUGBUILD check. Alternatively, the Ant (or whatever) infrastructure > > could toggle this via a XML config option or so. > > DEBUGBUILD sounds good.
How about the attached patch? Cheers, Peter -- http://www.more-magic.net
>From a7beb90ae87f7738afe63358f51a87fefca2c7cb Mon Sep 17 00:00:00 2001 From: Peter Bex <peter....@xs4all.nl> Date: Sun, 5 Oct 2014 20:46:29 +0200 Subject: [PATCH] Enable debug_mode on Android only for DEBUGBUILDs --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index 5585c9b..fd3a3be 100644 --- a/runtime.c +++ b/runtime.c @@ -640,7 +640,7 @@ int CHICKEN_initialize(int heap, int stack, int symbols, void *toplevel) if(chicken_is_initialized) return 1; else chicken_is_initialized = 1; -#ifdef __ANDROID__ +#if defined(__ANDROID__) && defined(DEBUGBUILD) debug_mode = 2; #endif -- 1.7.10.4
_______________________________________________ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers