[m-rev.] diff: mixing high and low level

Zoltan Somogyi zs at cs.mu.OZ.AU
Thu Aug 15 15:24:57 AEST 2002


runtime/mercury_conf_param.h:
	Catch attempts to mix high level code with debugging intended for low
	level code.

Zoltan.

cvs diff: Diffing .
Index: mercury_conf_param.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_conf_param.h,v
retrieving revision 1.61
diff -u -b -r1.61 mercury_conf_param.h
--- mercury_conf_param.h	2002/08/02 08:13:33	1.61
+++ mercury_conf_param.h	2002/08/15 04:44:39
@@ -218,6 +218,27 @@
 ** 	the representation of lvals in the RTTI system.
 */
 
+#ifdef	MR_HIGHLEVEL_CODE
+  #ifdef MR_LOWLEVEL_DEBUG
+    #error "MR_HIGHLEVEL_CODE and MR_LOWLEVEL_DEBUG are not supported together"
+  #endif
+  #ifdef MR_DEBUG_DD_BACK_END
+    #error "MR_HIGHLEVEL_CODE and MR_DEBUG_DD_BACK_END are not supported together"
+  #endif
+  #ifdef MR_DEBUG_GOTOS
+    #error "MR_HIGHLEVEL_CODE and MR_DEBUG_GOTOS are not supported together"
+  #endif
+  #ifdef MR_DEBUG_LABEL_NAMES
+    #error "MR_HIGHLEVEL_CODE and MR_DEBUG_LABEL_NAMES are not supported together"
+  #endif
+  #ifdef MR_LOWLEVEL_ADDR_DEBUG
+    #error "MR_HIGHLEVEL_CODE and MR_LOWLEVEL_ADDR_DEBUG are not supported together"
+  #endif
+  #ifdef MR_DEBUG_LVAL_REP
+    #error "MR_HIGHLEVEL_CODE and MR_DEBUG_LVAL_REP are not supported together"
+  #endif
+#endif
+
 #if MR_DEBUG_AGC_ALL
   #define MR_DEBUG_AGC_SCHEDULING
   #define MR_DEBUG_AGC_COLLECTION
cvs diff: Diffing GETOPT
cvs diff: Diffing machdeps
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list