/* Returns: (nullable) (transfer none): a #GCancellable from the top of the stack, or NULL if the stack is empty.  */
GCancellable* g_cancellable_get_current(void)
/* Returns: (nullable) (transfer none): a #GCancellable from the top of the stack, or NULL if the stack is empty.  */
GCancellable* g_cancellable_get_current(void)
{
  GSList *l;
  l = g_private_get (&current_cancellable);
  if (l == NULL)
    return NULL;
  return G_CANCELLABLE (l->data);
}