# \[Echo\] Am I using the macro correctly?

**URL:** <https://community.haxe.org/t/echo-am-i-using-the-macro-correctly/3643>\
**Category:** Haxe\
**Tags:** macro, haxe-hl\
**Created:** [August 22, 2022, 2:32am UTC](https://community.haxe.org/t/echo-am-i-using-the-macro-correctly/3643 "2022-08-22T02:32:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tekkunsan](https://community.haxe.org/user_avatar/community.haxe.org/tekkunsan/32/1944_2.png) [@Tekkunsan](https://community.haxe.org/u/Tekkunsan)\
**Post date:** [August 22, 2022, 2:32am UTC](https://community.haxe.org/t/echo-am-i-using-the-macro-correctly/3643/1 "2022-08-22T02:32:17Z")

</div>

So I want to add an `isOnFloor` data to the body using the example

```nohighlight
--macro echo.Macros.add_data("isOnFloor", "Bool")

```

but when I try to access it I get an error:  
 ![problem](https://community.haxe.org/uploads/default/original/2X/4/453c15a3d5823626d87cc934e12544c527ecc1b3.png)

This is the hxml file if it will help

```nohighlight
-cp src

-lib heaps
-lib hlsdl
-lib deepnightLibs
-lib ldtk-haxe-api
-lib echo

-hl bin/Test.hl

-main Main
-D windowSize=1024x576

--macro echo.Macros.add_data("entity", "objects.Entity")
--macro echo.Macros.add_data("isOnFloor", "Bool")

```
