浏览代码

Add NULL_TRAP as a config option

tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
c10698b8b4
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 1
    0
      src/config.h
  2. 8
    0
      src/core/config.c

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

@@ -124,5 +124,6 @@
124 124
 				 * "make bin/rtl8139.dsk bs" */
125 125
 #undef	BUILD_ID		/* Include a custom build ID string,
126 126
 				 * e.g "test-foo" */
127
+#undef	NULL_TRAP		/* Attempt to catch NULL function calls */
127 128
 
128 129
 /* @END general.h */

+ 8
- 0
src/core/config.c 查看文件

@@ -199,3 +199,11 @@ REQUIRE_OBJECT ( wince );
199 199
 #ifdef	PXE_IMAGE
200 200
 REQUIRE_OBJECT ( pxe );
201 201
 #endif
202
+
203
+/*
204
+ * Drag in miscellaneous objects
205
+ *
206
+ */
207
+#ifdef	NULL_TRAP
208
+REQUIRE_OBJECT ( nulltrap );
209
+#endif

正在加载...
取消
保存