Support defs with multiple arguments #3

Merged
brechtcs merged 1 commit from master into master 2020-12-05 21:36:55 +01:00
brechtcs commented 2020-12-05 21:33:23 +01:00 (Migrated from github.com)

This allows directives added to mold.defs as functions to use multiple arguments. The template syntax for this would be <<def $in.first, $in.second>>. I didn't have to make any changes to the compiler to support this. All that was needed was to make sure that the dispatch method can pass on an arbitrary amount of args instead of just the one.

This allows directives added to `mold.defs` as functions to use multiple arguments. The template syntax for this would be `<<def $in.first, $in.second>>`. I didn't have to make any changes to the compiler to support this. All that was needed was to make sure that the `dispatch` method can pass on an arbitrary amount of args instead of just the one.
marijnh commented 2020-12-05 21:37:04 +01:00 (Migrated from github.com)

Seems reasonable!

Seems reasonable!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/mold!3
No description provided.