Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


make/functions/call-fn (294 bytes)

1 #call VARIABLE,PARAM,PARAM,...
2 #the variable contains a complex expression to be expanded
3 #the params go into $(1), $(2),...etc. for expansion
4 #nesting works and scoping works
5 #example:
6 #reverse = $(2) $(1)
7 #$(call reverse,a,b)
8 #b a
9 #
10 # see mapping function utils for some madness
11 $(call <++>)