1: /*
     2:  *  Guitar-ZyX(tm)::MasterControlProgram - portable guitar F/X controller
     3:  *  Copyright (C) 2009  Douglas McClendon
     4:  *
     5:  *  This program is free software: you can redistribute it and/or modify
     6:  *  it under the terms of the GNU General Public License as published by
     7:  *  the Free Software Foundation, version 3 of the License.
     8:  *
     9:  *  This program is distributed in the hope that it will be useful,
    10:  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    11:  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12:  *  GNU General Public License for more details.
    13:  *
    14:  *  You should have received a copy of the GNU General Public License
    15:  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16: */
    17: /*
    18: #############################################################################
    19: #############################################################################
    20: # 
    21: # gzmcpc::debug: 'debugging' functions
    22: #
    23: #############################################################################
    24: ##
    25: ## Copyright 2008-2009 Douglas McClendon <dmc AT filteredperception DOT org>
    26: ##
    27: #############################################################################
    28: #############################################################################
    29: #
    30: */
    31: 
    32: 
    33: #ifndef _NDS_CLIENT_DEBUG_H 
    34: #define _NDS_CLIENT_DEBUG_H 
    35: 
    36: 
    37: 
    38: 
    39: #define DBG_MSG_MAX_LEN 1024 
    40: 
    41: #if defined MORE_DEBUG_LOGGING 
    42: #define debug_log_more(format, args...) debug_log(format, args) 
    43: #else 
    44: #define debug_log_more(format, args...) 
    45: #endif 
    46: 
    47: 
    48: 
    49: 
    50: 
    51: 
    52: 
    53: 
    54: 
    55: 
    56: 
    57: void debug_log_init(const char *log_filename);
    58: void debug_log(const char *debug_fmt, ...);
    59: 
    60: int get_mem_used();
    61: int get_mem_free();
    62: 
    63: void die(void);
    64: 
    65: 
    66: 
    67: 
    68: extern int retval;
    69: 
    70: extern int debug_tweak_var;
    71: 
    72: extern char debug_log_filename_g[256];
    73: 
    74: #endif // _NDS_CLIENT_DEBUG_H 
    75: