Dear Andreas:
I need a very large string table to generate some times.
usually I write some code like that:
void do_job(string[]@ ar)
{
......................
}
void main()
{
string[] samples =
{
#include "strings.txt"
}
do_job(samples);
}
strings.txt is a very large file like (usually 100000 lines)
".Database/001/IDX/00.idx",
".Database/001/IDX/01.idx",
".Database/002/IDX/02.idx",
.......
But I saw the following codes in as_scriptengine.cpp
int asCScriptEngine::AddConstantString(const char *str, size_t len)
{
// The VM currently doesn't handle string ids larger than 65535
asASSERT(stringConstants.GetLength() <= 65536);
}
How should I do to exceed 65536 string constants ?