Last change
on this file since 647 was
615,
checked in by dubos, 7 years ago
|
devel/unstructured : import Python layer from HEAT
|
File size:
1.1 KB
|
Rev | Line | |
---|
[615] | 1 | {# ---------------------------------- Macros common to all variants ---------------------------------------- #} |
---|
| 2 | |
---|
| 3 | {% set flat='#' %} |
---|
| 4 | |
---|
| 5 | {% macro cst_if(condition, action) %} |
---|
| 6 | {{ flat }}if {{ condition }} |
---|
| 7 | {{ action }} |
---|
| 8 | {{ flat }}endif |
---|
| 9 | {%- endmacro %} |
---|
| 10 | |
---|
| 11 | {% macro define(key,val) %} |
---|
| 12 | {{ flat }}undef {{ key }} |
---|
| 13 | {{ flat }}define {{ key }} {{ val }} |
---|
| 14 | {%- endmacro %} |
---|
| 15 | |
---|
| 16 | {% macro define_cppmacro(key,args,val) %} |
---|
| 17 | {{ flat }}undef {{ key }} |
---|
| 18 | {{ flat }}define {{ key+args }} {{ val }} |
---|
| 19 | {%- endmacro %} |
---|
| 20 | |
---|
| 21 | {% macro undef(key) %} |
---|
| 22 | {{ flat }}undef {{ key }} |
---|
| 23 | {{ flat }}define {{ key }} {{ key }}_UNDEFINED_HERE |
---|
| 24 | {%- endmacro %} |
---|
| 25 | |
---|
| 26 | {% macro dummy() -%} |
---|
| 27 | {{ caller() }} |
---|
| 28 | {%- endmacro %} |
---|
| 29 | |
---|
| 30 | {% macro define_kernel(name) %} |
---|
| 31 | {{ flat }}ifdef KERNEL_{{name}} |
---|
| 32 | !-------------------------------------------------------------------------- |
---|
| 33 | !---------------------------- {{ name }} ---------------------------------- |
---|
| 34 | {{ caller() }} |
---|
| 35 | !---------------------------- {{ name }} ---------------------------------- |
---|
| 36 | !-------------------------------------------------------------------------- |
---|
| 37 | |
---|
| 38 | {{ flat }}endif |
---|
| 39 | {%- endmacro %} |
---|
Note: See
TracBrowser
for help on using the repository browser.