---
title: OS_ACTIVITY_CURRENT
framework: os
role: symbol
role_heading: Macro
path: os/os_activity_current
---

# OS_ACTIVITY_CURRENT

A special value that selects the current activity, if there is one.

## Declaration

```occ
#define OS_ACTIVITY_CURRENT
```

## Discussion

Discussion When creating a new activity, pass this value as the activity’s parent to create the new activity with the current activity as its parent. If there is no active activity, the creation function returns the new activity as a top-level activity without a parent.

## See Also

### Choosing a Special Activity

- [OS_ACTIVITY_NONE](os/os_activity_none.md)
