You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, there's no good way to execute built-in commands which vary between systems. You're stuck with stuff like this:
//! Not platform independent!
//! If on Windows, change this to "move"
call("mv", source, dest);
It would be much more powerful if we could use extremely simple macro-style syntax to implement platform-dependent behavior. The above would, under this proposal, look something like this:
I know it is a bit late but: gcc is your friend.
You can very well use the gcc preprocessor to achieve not only #defines but #includes too.
I made this script for the exact purpose:
Right now, there's no good way to execute built-in commands which vary between systems. You're stuck with stuff like this:
It would be much more powerful if we could use extremely simple macro-style syntax to implement platform-dependent behavior. The above would, under this proposal, look something like this:
The text was updated successfully, but these errors were encountered: