log: Remove obsoleted dbg_log and dbg_assert imports

This commit is contained in:
Amaan Cheval 2018-04-15 13:19:05 +05:30 committed by Fabian
parent 45cd6f45c1
commit 371ed40c82
2 changed files with 3 additions and 5 deletions

View file

@ -142,9 +142,7 @@ function V86Starter(options)
},
"_hlt_op": function() { return cpu.hlt_op(); },
"abort": function() { dbg_assert(false); },
"_dbg_assert": function() { return cpu.dbg_assert.apply(cpu, arguments); },
"_dbg_log": function() { return cpu.dbg_log.apply(cpu, arguments); },
"_dbg_trace": function() { return dbg_trace(); },
"__dbg_trace": function() { return dbg_trace(); },
"_logop": function(eip, op) { return cpu.debug.logop(eip, op); },
"_todo": function() { return cpu.todo.apply(cpu, arguments); },
"_undefined_instruction": function() { return cpu.undefined_instruction.apply(cpu, arguments); },

View file

@ -8,9 +8,9 @@
#include "const.h"
extern void logop(int32_t, int32_t);
extern void dbg_trace(void);
extern void _dbg_trace(void);
#define dbg_log(...) { if(DEBUG) { printf(__VA_ARGS__); } }
#define dbg_trace(...) { if(DEBUG) { dbg_trace(__VA_ARGS__); } }
#define dbg_trace(...) { if(DEBUG) { _dbg_trace(__VA_ARGS__); } }
#define dbg_assert(condition) { if(DEBUG) { if(!(condition)) dbg_log(#condition); assert(condition); } }
#define dbg_assert_message(condition, message) { if(DEBUG && !(condition)) { dbg_log(message); assert(false); } }