-/*
- * checked-build.h: Expensive asserts used when mono is built with --with-checked-build=yes
+/**
+ * \file
+ * Expensive asserts used when mono is built with --with-checked-build=yes
*
* Author:
* Rodrigo Kumpera (kumpera@gmail.com)
*/
#define MONO_REQ_GC_SAFE_MODE do { \
- assert_gc_safe_mode (); \
+ assert_gc_safe_mode (__FILE__, __LINE__); \
} while (0);
#define MONO_REQ_GC_UNSAFE_MODE do { \
- assert_gc_unsafe_mode (); \
+ assert_gc_unsafe_mode (__FILE__, __LINE__); \
} while (0);
#define MONO_REQ_GC_NEUTRAL_MODE do { \
- assert_gc_neutral_mode (); \
+ assert_gc_neutral_mode (__FILE__, __LINE__); \
} while (0);
/* In a GC critical region, the thread is not allowed to switch to GC safe mode.
assert_in_gc_critical_region(); \
} while(0)
-void assert_gc_safe_mode (void);
-void assert_gc_unsafe_mode (void);
-void assert_gc_neutral_mode (void);
+void assert_gc_safe_mode (const char *file, int lineno);
+void assert_gc_unsafe_mode (const char *file, int lineno);
+void assert_gc_neutral_mode (const char *file, int lineno);
void* critical_gc_region_begin(void);
void critical_gc_region_end(void* token);