Esempio n. 1
0
string exec_cmd(string user, string cmd, std::map<string, string> p){

		

	string r = "hello";
	// load user
	
	// get cmd
	
	cLOG("11");
	// send cmd to user
	// user::onCommand(command name, command param)
#if 0
	// test
 	BOOL ret = c.Compile("test/test.cs");
	// if (!ret){
	// 	printf("==== compiler error ===\n");
	// 	return "==== compiler error ===\n";
	// }
		
//	CCompiler::classDesTable.dump();
	CClassDes* pc = CCompiler::classDesTable.getClass("test/test");
//	printf("this=%x,==>ps=%x", &CCompiler::classDesTable, pc);
	vm.LoadObject(pc);
#endif

	cs->loadobj("test");
	
	cLOG("111");
	return r;
}
Esempio n. 2
0
int main()
{
	// user only operate the compiler facade
	CCompiler objCompiler;
	objCompiler.Compile("TestFile.cpp", "TestFile.exe");

	return 0;
}