> Oh, yes, I didnt do PyRun_SimpleString and pass my arguments as string, 
> because the arguments change during run time.  The arguments are the id's of 
> the bodies, which are currently handled by the Ig2Functor.
You can make string with those ids, like

string 
s=string("command(")+lexical_cast<string>(id1)+","+lexical_cast<string>(id2)+");"
PyRun_SimpleString(s.c_str());



_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to