浏览代码

Automatically drag in console.h if DBG() is being defined as printf().

tags/v0.9.3
Michael Brown 20 年前
父节点
当前提交
063140864e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/include/compiler.h

+ 1
- 0
src/include/compiler.h 查看文件

45
  */
45
  */
46
 #define DEBUG_SYMBOL _H2 ( debug_, OBJECT )
46
 #define DEBUG_SYMBOL _H2 ( debug_, OBJECT )
47
 #if DEBUG_SYMBOL
47
 #if DEBUG_SYMBOL
48
+#include "console.h"
48
 #define DBG(...) printf ( __VA_ARGS__ )
49
 #define DBG(...) printf ( __VA_ARGS__ )
49
 #define DEBUG_SYMBOL_STR _XSTR ( DEBUG_SYMBOL )
50
 #define DEBUG_SYMBOL_STR _XSTR ( DEBUG_SYMBOL )
50
 __asm__ ( ".equ\tWITH_DEBUG_MESSAGES, 0" );
51
 __asm__ ( ".equ\tWITH_DEBUG_MESSAGES, 0" );

正在加载...
取消
保存