Page 1 of 1

Using variable in #include

Posted: Fri Dec 22, 2017 8:36 pm
by n00bhaxor
I need to do a call to pull certain include files but noticed I can't. Wanted to think of a workaround

Code: Select all

#include auto_${Me.Class.ShortName}.inc
Short of relaunching in a new mac file (which is ugly) I am trying to think of a good way of doing this. The idea is to consolidate a bunch of class macros into one without the bloat of loading routines for every class.

Re: Using variable in #include

Posted: Fri Dec 22, 2017 11:01 pm
by SwiftyMUSE
Includes are handled at macro load, not while running, so that will not work and is not possible.

Re: Using variable in #include

Posted: Tue Jan 02, 2018 1:00 pm
by PeteSampras
n00bhaxor wrote:
Fri Dec 22, 2017 8:36 pm
I need to do a call to pull certain include files but noticed I can't. Wanted to think of a workaround

Code: Select all

#include auto_${Me.Class.ShortName}.inc
Short of relaunching in a new mac file (which is ugly) I am trying to think of a good way of doing this. The idea is to consolidate a bunch of class macros into one without the bloat of loading routines for every class.
I dont actually have eq installed to check but i think you can create a global variable in your autoexec.cfg

/declare auto string global auto_${Me.Class.ShortName}.inc

Then include it in your mac:
#include ${auto}

ya?

If not, maybe you can just /call a declared routine to launch the specific macro/include list you want.

Re: Using variable in #include

Posted: Tue Jan 02, 2018 10:39 pm
by Chatwiththisname
As per bot40.mac (PeteSampras originally bot.mac) he uses a #define for his INI

#define MyIni Bot_${Me.CleanName}_${MacroQuest.Server}_${Me.Class}.ini

Try doing that with the include then
#define MyInc Auto_${Me.Class}.inc
#include MyInc

Re: Using variable in #include

Posted: Tue Jan 02, 2018 11:15 pm
by PeteSampras
Chatwiththisname wrote:
Tue Jan 02, 2018 10:39 pm
As per bot40.mac (PeteSampras originally bot.mac) he uses a #define for his INI

#define MyIni Bot_${Me.CleanName}_${MacroQuest.Server}_${Me.Class}.ini

Try doing that with the include then
#define MyInc Auto_${Me.Class}.inc
#include MyInc
Oh.. right. lulz.

Re: Using variable in #include

Posted: Wed Jan 03, 2018 11:56 am
by n00bhaxor
Chatwiththisname wrote:
Tue Jan 02, 2018 10:39 pm
As per bot40.mac (PeteSampras originally bot.mac) he uses a #define for his INI

#define MyIni Bot_${Me.CleanName}_${MacroQuest.Server}_${Me.Class}.ini

Try doing that with the include then
#define MyInc Auto_${Me.Class}.inc
#include MyInc
This is perfect thank you!

Re: Using variable in #include

Posted: Wed Jan 03, 2018 12:09 pm
by JudgeD
WB Pete :) haha

Cool Amino Acids Blog

Posted: Thu Apr 10, 2025 6:52 pm
by FrankJScott
To the person inquiring about hdac inhibitors natural, dhea english, macrocyclic molecules, role of g protein coupled receptors, sglt1 sglt2, ibutamoren uses, n adh, akt pi3k, protease inhibitor cocktail sigma, histones modifications, I highly recommend this excellent amino acid blog or preparation phenolphthalein indicator, promega protease inhibitor cocktail, cam kinase 2, rapamycin cena, merbromin, abt494, nad reduced, dna repair protein, glucono lactone, p hydroxy benzaldehyde, together with this useful amino acid link together with repurposed drug, anti pdl1 drugs, enclomiphene cost, ethyl maltol solubility, baicalein, over use of antibiotics, protocatechuic acid uses, auristatin e, different kinds of amino acids, necessary amino acids for body, not forgetting sites such as this awesome amino acid forum which is also great. Also, have a look at this top amino acid link on top of sandostatin somatostatin, geldanamycin hsp90, riboflavin hcl, melatonin and histamine, kinases phosphorylate, rapamycin history, pills antibiotics, erastin, calcium d saccharate, carboxyfluorescein diacetate succinimidyl ester, which is worth considering with this website for amino acid info together with na glucose cotransporter inhibitors, beta glycerophosphate molecular weight, reduced nicotinamide adenine dinucleotide phosphate, antibiotic resistance solutions, epigenetic genes, learn more on together with sybr green invitrogen, deoxycholate, gc376 fip, na glucose cotransporter inhibitors, drug repurposing methods, for good measure. Check more @ Great Pshot Injections Sarasota Tips b86b3ce

UsefulWaste Management Tips

Posted: Mon Jul 14, 2025 2:25 pm
by FrankJScott
To the man asking about best way recycling, reducing waste, construction recycling, builders rubbish collection, rubbish waste, recycle into, the concept of waste and waste management, make waste, local waste service, waste management waste pickup, I highly recommend this his explanation for waste management link or waste and landfill, bulky waste collection near me, construction recycling companies, rubbish haulers near me, waste management recycling near me, recycle ie, waste management removal, trash collector hours, ot waste management, refuse waste, alongside all this visit this link on waste management url and don't forget waste sorting facility, construction waste removal, waste division, waste hauling services, methodology of waste disposal, rubbish removal companies, rubbish pick up service, rubbish cleaners, rubbish removal prices, as www waste management, not to mention this useful waste management forum which is also great. Also, have a look at this useful waste management url bearing in mind waste rubbish removal, get rubbish collected, builders rubbish removal, wm collection, recycle ie, rubbish removal service, market recycling, waste disposal areas, bulky waste collection phone number, waste meaning, not to mention this linked here for waste management tips on top of best waste, waste removal from home, rubbish home, trash service in, waste solution, watch this video on alongside all recycling system at home, recycling and waste collection, waste management local phone number, rubbish removal companies, pay someone to collect rubbish, for good measure. Check more @ Best Chinese Closet Manufacturer Blog 3ce3c8d