# \`define macros usage

**URL:** <https://verificationacademy.com/forums/t/define-macros-usage/27530>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [September 9, 2011, 11:37pm UTC](https://verificationacademy.com/forums/t/define-macros-usage/27530 "2011-09-09T23:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [September 10, 2011, 4:43am UTC](https://verificationacademy.com/forums/t/define-macros-usage/27530/2 "2011-09-10T04:43:43Z")

</div>

Yes you can. But note that the `ifdef is not evaluated in the declaration of the macro; it is evaluated when the macro is called and expanded.

---

_[View the full topic](https://verificationacademy.com/forums/t/define-macros-usage/27530)._
