Commit 1e0faaba authored by Byurrrer's avatar Byurrrer

мелкие правки

parent efcdf6c9
This diff is collapsed.
......@@ -91,14 +91,7 @@ S4G_API int s4g_LoadCode(s4g_Main *s4gm, const char *szCode, bool isFile)
for (int i = 0, il = LEXgetCountFile(s4gm); i < il; ++i)
{
s4gm->m_aFiles.push_back(LEXgetFile(s4gm, i));
}
for(auto i = 0; i < 1000000; ++i)
{
s4gm->m_pLexer->setCurrPos(0);
s4gm->m_pBst->parse(s4gm->m_pLexer);
s4gm->m_pBst->clear();
s4gm->m_aFiles.push_back(LEXgetFile(s4gm, i));
}
s4gm->m_pLexer->setCurrPos(0);
......
......@@ -14,7 +14,7 @@
//#pragma comment(lib, "s4g.lib")
//
class TestClass
{
public:
......@@ -94,11 +94,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLin
s4g_Export_LibFile(s4gm);
s4g_Export_LibString(s4gm);
//s4g_LoadCode(s4gm, "f:/s4g/src/test.s4g");
//s4g_LoadCode(s4gm, "D:\\project\\s4g\\build\\lang\\024.s4gt--");
//s4g_LoadCode(s4gm, "D:\\project\\s4g\\build\\test.s4g");
s4g_LoadCode(s4gm, "D:\\project\\s4g\\docs\\samples\\function.s4g");
s4g_LoadCode(s4gm, "test.s4g");
//
/*s4g_StackPush_Class(s4gm);
s4g_StackPush_ClassMethod(s4gm, "__constructor", TestClass_Constructor);
s4g_StackPush_ClassMethod(s4gm, "__destructor", TestClass_Destructor);
......@@ -110,8 +108,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLin
DWORD time = timeGetTime();
s4g_Call(s4gm);
s4g_GCcall(s4gm);
s4g_GCcall(s4gm);
time = timeGetTime() - time;
MessageBox(0, String(time).c_str(), 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment