static MonoDomainFunc quit_function = NULL;
+/**
+ * mono_install_runtime_cleanup:
+ */
void
mono_install_runtime_cleanup (MonoDomainFunc func)
{
static gint32 exitcode=0;
-gint32 mono_environment_exitcode_get (void)
+/**
+ * mono_environment_exitcode_get:
+ */
+gint32
+mono_environment_exitcode_get (void)
{
return(exitcode);
}
-void mono_environment_exitcode_set (gint32 value)
+/**
+ * mono_environment_exitcode_set:
+ */
+void
+mono_environment_exitcode_set (gint32 value)
{
exitcode=value;
}
/**
* mono_runtime_set_shutting_down:
+ * \deprecated This function can break the shutdown sequence.
*
- * Invoked by System.Environment.Exit to flag that the runtime
+ * Invoked by \c System.Environment.Exit to flag that the runtime
* is shutting down.
- *
- * Deprecated. This function can break the shutdown sequence.
*/
void
mono_runtime_set_shutting_down (void)
mono_runtime_stdout_fflush ();
}
-/*
+/**
* mono_print_thread_dump:
*
- * Print information about the current thread to stdout.
- * SIGCTX can be NULL, allowing this to be called from gdb.
+ * Print information about the current thread to stdout.
+ * \p sigctx can be NULL, allowing this to be called from gdb.
*/
void
mono_print_thread_dump (void *sigctx)
}
/**
- * mono_print_method_from_ip
+ * mono_print_method_from_ip:
* \param ip an instruction pointer address
*
* This method is used from a debugger to get the name of the
* method at address \p ip.
*
* This prints the name of the method at address \p ip in the standard
- * output. Unlike mono_pmip which returns a string, this routine
+ * output. Unlike \c mono_pmip which returns a string, this routine
* prints the value on the standard output.
*/
-#ifdef __GNUC__
-/* Prevent the linker from optimizing this away in embedding setups to help debugging */
- __attribute__ ((__used__))
-#endif
-void
+MONO_ATTR_USED void
mono_print_method_from_ip (void *ip)
{
MonoJitInfo *ji;