UseFunc header: Difference between revisions
(Created page.) |
(No difference)
|
Revision as of 12:31, 9 November 2005
| Author: deguix (talk, contrib) |
Download Link
usefunc.zip (21 KB)
Description
UseFunc is a header file wrapping macro-functions into more compact code. Some other features are:
- It uses the same call for both installer and uninstaller. You can change it though, just read the documentation. - Version specification for every function and header. This adds better compatibility with older function and header versions. Logically, you need some extra code to compare versions... - Lists of functions and headers that use UseFunc in compile-time. - Comes with a complete Array header, and the Str header with one function (these are called example headers). The Array header is different from Afrow UK's, because it uses the Math plug-in. (1st contribution using Math plugin, at last!) - Basic internal error handling for the Array header.
Documentation is included for the UseFunc and the headers. I didn't test every single feature that I put, so if you find any bugs and suggestions, you're welcome to report them to me.
How to use
- Extract the files in the .zip file into the NSIS folder, all files should go to their respective folders automatically.
- Put the line !include "UseFunc.nsh" in your script.
- Define which functions you want to use after the !incúde "UseFunc.nsh" line. Like: ${StrCase}.
- Use the function macro in your script.