
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2633 212acab6-be3b-0410-9dea-997c60f758d6
27 lines
540 B
C++
27 lines
540 B
C++
// uservars.h by Ramon 10 Jun 2003
|
|
|
|
#ifndef ___USERVARS___H_____
|
|
#define ___USERVARS___H_____
|
|
|
|
#ifdef NSIS_SUPPORT_NAMED_USERVARS
|
|
|
|
#include "Lang.h"
|
|
|
|
class UserVarsStringList : public LangStringList
|
|
{
|
|
public:
|
|
UserVarsStringList()
|
|
{
|
|
}
|
|
~UserVarsStringList() { }
|
|
|
|
int get(char *name, size_t n_chars = -1)
|
|
{
|
|
int v=SortedStringListND<struct langstring>::find(name, n_chars);
|
|
if (v==-1) return -1;
|
|
return (((struct langstring*)gr.get())[v].index);
|
|
}
|
|
};
|
|
#endif //NSIS_SUPPORT_NAMED_USERVARS
|
|
|
|
#endif
|