1
0
Эх сурвалжийг харах

log: Remove obsoleted dbg_log and dbg_assert imports

Amaan Cheval 6 жил өмнө
parent
commit
371ed40c82

+ 1 - 3
src/browser/starter.js

@@ -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); },

+ 2 - 2
src/native/log.h

@@ -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); } }