Skip to content
⌘ NSIS Forum Archive

CallArtificialFunction problem

6 posts

TrifonovS#

CallArtificialFunction problem

I have the following problem. I have made some special macros, using CallArtificialFunction macro. They work as it is expected. But now I need to make another macro that uses my existing macros and this new macro also uses CallArtificialFunction. I organized the new macro similar to the existing ones. But when I compile the script I get the following message:

!insertmacro: macro "CallArtificialFunction" already being inserted!

... and then follow some errors (I believed caused by this problem).

Probably it is easy, but I don't know how to solve my problem. A little help will be appreciated...
Anders#
Use CallArtificialFunction2

(This macro recursion restriction is silly and there is no reason for it to exist)
Anders#
Originally Posted by TrifonovS View Post
And what if I have now a third level? There is no CallArtificialFunction3...
You could make your own. This helper is mostly used by "library" headers and you would normally not need 3 levels of this magic.

I will look into removing this !insertmacro restriction but no promises...