Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 1468: Better management of debugging #defines #61

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#if !defined(MACRUBY_STATIC)

#define ROXOR_COMPILER_DEBUG 0
#include "debug_config.h"

#if !defined(DW_LANG_Ruby)
# define DW_LANG_Ruby 0x15 // TODO: Python is 0x14, request a real number
Expand Down
11 changes: 11 additions & 0 deletions debug_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef ROXOR_COMPILER_DEBUG
#define ROXOR_COMPILER_DEBUG 0
#endif

#ifndef ROXOR_VM_DEBUG
#define ROXOR_VM_DEBUG 0
#endif

#ifndef ROXOR_VM_DEBUG_CONST
#define ROXOR_VM_DEBUG_CONST 0
#endif
3 changes: 2 additions & 1 deletion dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include <execinfo.h>
#include <dlfcn.h>

#define ROXOR_VM_DEBUG 0
#include "debug_config.h"

#define MAX_DISPATCH_ARGS 100

static force_inline void
Expand Down
4 changes: 1 addition & 3 deletions vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
* Copyright (C) 2008-2011, Apple Inc. All rights reserved.
*/

#define ROXOR_VM_DEBUG 0
#define ROXOR_COMPILER_DEBUG 0
#define ROXOR_VM_DEBUG_CONST 0
#include "debug_config.h"

#if MACRUBY_STATIC
# include <vector>
Expand Down