# Macros
{id: macros}


## Macro - increment x by 1
{id: macro-increment-x-by-1}
{i: macro}

![](examples/macros/increment_x.cr)

## Macro - with parameter and placeholder
{id: macro-with-parameter}

![](examples/macros/increment_var.cr)

## Macro Swap
{id: macro-swap}

![](examples/macros/swap.cr)
![](examples/macros/swap.out)

## Macro - internal variables - Swap fixed
{id: macro-swap-fixed}

![](examples/macros/swap_fixed.cr)
![](examples/macros/swap_fixed.out)


## Macros function
{id: macro-function}

![](examples/macros/function.cr)

## Macro to print type and content
{id: macro-to-print-type-and-content}

![](examples/macros/type_and_content.cr)

