# ROOT 6 / CLING / rootcling replacements for (\_\_CINT\_\_), (\_\_MAKECINT\_\_) and (\_\_ACLIC\_\_) macros

**URL:** <https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698>\
**Category:** ROOT\
**Created:** [January 25, 2018, 8:19am UTC](https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698 "2018-01-25T08:19:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 25, 2018, 8:19am UTC](https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698/1 "2018-01-25T08:19:15Z")

</div>

I am looking for ROOT 6 / CLING / rootcling replacements for ROOT 5 / CINT / rootcint macros ` __CINT__ `, ` __MAKECINT__ ` and ` __ACLIC__ ` (I would like to get rid of any ROOT 5 / CINT / rootcint dependencies in new ROOT 6 / CLING / rootcling source code):

```auto
#if defined( __CINT__ ) && !defined( __MAKECINT__ )
// source code being actually interpreted by cint
#elif defined( __MAKECINT__ )
// source code seen by rootcint only
#elif defined( __ACLIC__ )
// source code being actually compiled by ACLiC
#else
// source code suitable for a standalone executable
#endif

```

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [January 25, 2018, 12:58pm UTC](https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698/2 "2018-01-25T12:58:25Z")

</div>

```auto
#if defined( __CLING__ ) && !defined( __ROOTCLING__ )
// source code being actually interpreted by Cling
#elif defined( __ROOTCLING__ )
// source code seen by rootcling only
#elif defined( __ACLIC__ )
// source code being actually compiled by ACLiC
#else
// source code suitable for a standalone executable
#endif

```

Of course the amount of things that ought to be hidden from Cling and Rootcling is **much** less than for Cint/Rootcint so you ought to review it. Most often all the #ifdef can be removed. Often the ACLiC and Cling section can be merged. Often the rootcling section contains only #pragma.

Chees,  
Philippe.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 8, 2018, 12:58pm UTC](https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698/3 "2018-02-08T12:58:28Z")

</div>

Closed on February 8, 2018, 12:58pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
