Mercurial > MadButterfly
view tools/foreach.m4 @ 1243:d5f70928e9f1
Move MBScene_domview_ui and MBScene_domview to separated modules.
- domview.py is where MBScene_domview and MBScene_domview_monitor are.
- domview_ui.py is where MBScene_domview_ui and MBScene_frameline_stack are.
- keep modules small to make better collaberation.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 16:32:16 +0800 |
parents | f4b792afa74e |
children |
line wrap: on
line source
divert([-1]) define([_arg1], [$1]) define([_foreach], [ifelse([$2], [()], [], [define([$1], _arg1$2)$3[]_foreach([$1], (shift$2), [$3])])]) define([foreach], [pushdef([$1])_foreach($@)popdef([$1])]) divert[]dnl