User Tools

Site Tools


pracro:post-commit-hook

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
pracro:post-commit-hook [2011/12/02 13:32] devapracro:post-commit-hook [2011/12/02 13:35] (current) deva
Line 32: Line 32:
 value = getValue('macro1', 'name') value = getValue('macro1', 'name')
 </code> </code>
-  +This method will also require a function to retrieve the macro list as well as field list from a specific macro since the above function also prevents macro iteration: 
 +<code lua> 
 +macrolist = getMacroList() 
 +fieldlist = getFieldList('macro1'
 +</code> 
 +This solution is however fairly ugly. Setting the map from the first method to read-only (or const if you will) would much be prefered.
  
 =====Script placement===== =====Script placement=====
pracro/post-commit-hook.1322829134.txt.gz · Last modified: 2011/12/02 13:32 by deva