-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mamake: unified function for including files (re: f58153d)
Mamfiles currently include other files with MAM code upon 'setv CC' to read the compiler probe results from lib/probe/C/mam/HASHEDPATH, and upon 'bind -lfoo' to read the dependency rules for libfoo from lib/mam/foo. To ensure current and future consistency, this commit consolidates the include functionality in an include() function that also saves and restores the automatic variables. This functionality is now also exposed to the MAM language in the form of a new 'incl' command. It's currently unused, but may come in handy one day, and it's so trivial it seems silly not to add it.
- Loading branch information
Showing
2 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters