Is there any way to do something like
#ifndef foozle
foozle() { return('foo'); }
#endif
…in TADS3?
I’ve been putting together a module for various kinds of “complicated” furniture I’m using in my WIP. Some of them, like shop counters, allow actors to stand/go behind them.
In my WIP, I’m (probably) going to use the ConSpace
module, which implements a StandBehind
action.
What I’d like to be able to do is write the furniture module such that it doesn’t depend ConSpace
, using an existing StandBehindAction
if it exists or defining its own if it doesn’t.
But beyond this specific case, it would be kinda nice to have some way of dependency checking at compile time if the module isn’t polite enough to include a #define
indicating its existence.