stack_trace: always exports the show_backtrace service
authorJean Privat <jean@pryen.org>
Wed, 12 Feb 2014 14:45:28 +0000 (09:45 -0500)
committerJean Privat <jean@pryen.org>
Wed, 12 Feb 2014 14:45:28 +0000 (09:45 -0500)
If disabled by `opt_stacktrace` it is the body that change, not the
client of the function.

Signed-off-by: Jean Privat <jean@pryen.org>

src/abstract_compiler.nit

index 4e61ecf..6c0fa37 100644 (file)
@@ -382,7 +382,7 @@ abstract class AbstractCompiler
                compile_header_structs
 
                # Signal handler function prototype
-               if not toolctx.opt_no_stacktrace.value then self.header.add_decl("void show_backtrace(int);")
+               self.header.add_decl("void show_backtrace(int);")
 
                # Global variable used by the legacy native interface
                self.header.add_decl("extern int glob_argc;")