/* Returns: the @context that was passed in (since 2.6)  */
GMainContext* g_main_context_ref(GMainContext *context)
/* Returns: the @context that was passed in (since 2.6)  */
GMainContext* g_main_context_ref(GMainContext *context)
{
  g_return_val_if_fail (context != NULL, NULL);
  g_return_val_if_fail (g_atomic_int_get (&context->ref_count) > 0, NULL); 
  g_atomic_int_inc (&context->ref_count);
  return context;
}