ソースを参照

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" );

読み込み中…
キャンセル
保存