External Method Platform specific

Hi guys.
I’d like to define external method in order to simplify the code and make it platform specific.

Right now I’m using a constant where I defined library path for Windows and for MacOS an inline declare statement.

I would like to use External Methods but seems that LIB field cannot accept constants but need to write down the library path.

What I really don’t like of inline declare is that I call the various methods more than once and knowing each time the program will execute, at each cycle, a “declare” statement disturbs me quite a bit.

Any workaround?

Thanks

Prefix the constant name with # to use it as the lib name in an external method:

Awesome!
Thank you so much!!!