add MetaArg 'cl_object' to enable passing complex Lisp data to C++

This commit is contained in:
polos 2021-05-04 16:03:41 +02:00
parent 44056e0853
commit 490c878dee

View file

@ -1267,6 +1267,10 @@ static MetaArg toMetaArg(const QByteArray& sType, cl_object l_arg) {
_cstring_buffer_ << ba;
const char** s = new const char*(ba.constData());
p = s; }}
else if("cl_object" == sType) {
quintptr l = (quintptr)l_arg;
void** v = new void*((void*)l);
p = v; }
else if(T_QFileInfo == n) p = new QFileInfo(toQFileInfo(l_arg));
else if(T_QFileInfoList == n) p = new QFileInfoList(toQFileInfoList(l_arg));
else if(T_QGradient == n) p = new QGradient(toQGradient(l_arg));