# DataType:macro

The Macro DataType deals with the macro currently running, and nothing else.

## Members

| **Type**                                                                                       | **Member**          | **Description**                                                                 |
| ---------------------------------------------------------------------------------------------- | ------------------- | ------------------------------------------------------------------------------- |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **CurCommand**      | list the current line number, macro name, and code of the macro being processed |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **CurLine**         | The current line number of the macro being processed                            |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **CurSub**          | The current subroutine                                                          |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **isOuterVariable** | true if the provided parameter is a defined outer variable                      |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **isTLO**           | true if the provided parameter an existing TLO                                  |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **MemUse**          | How much memory the macro is using                                              |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **Name**            | The name of the macro currently running                                         |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Params**          | The number of parameters that were passed to the current subroutine             |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **Paused**          | NULL if no macro running, FALSE if mqpause is off, TRUE if mqpause is on        |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **Return**          | The value that was returned by the last completed subroutine                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **RunTime**         | How long the macro has been running (in seconds)                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **StackSize**       | StackSize?                                                                      |
| varies                                                                                         | **Variable**        | returns the value given the name of Macro variable                              |

## Methods

| Method Name | Action                        |
| ----------- | ----------------------------- |
| Undeclared  | List all undeclared variables |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/data-types/datatype-macro.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
