mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-14 05:11:25 -08:00
revisions
This commit is contained in:
parent
2a86bcc655
commit
06020d342f
5 changed files with 22 additions and 4 deletions
|
|
@ -291,7 +291,7 @@ cl_object qload_cpp(cl_object l_lib_name, cl_object l_unload) { /// qload-c++
|
|||
}
|
||||
return ECL_NIL;
|
||||
}
|
||||
if (!lib) {
|
||||
if (lib == nullptr) {
|
||||
lib = new QLibrary(libName);
|
||||
libraries[libName] = lib;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -463,7 +463,7 @@ QVariant ecl_fun(const QByteArray& pkgFun,
|
|||
// 'ecl_fun("cl:format", ...);' to prevent useless error messages from ECL
|
||||
// like "the function NIL is undefined"
|
||||
void* symbol = lisp_functions.value(pkgFun);
|
||||
if (!symbol) {
|
||||
if (symbol == nullptr) {
|
||||
int p = pkgFun.indexOf(':');
|
||||
QByteArray pkg = (p == -1) ? "qml-user" : pkgFun.left(p);
|
||||
QByteArray fun = pkgFun.mid(pkgFun.lastIndexOf(':') + 1);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ QVariant ecl_fun(const QByteArray& pkgFun,
|
|||
const QVariant& a15,
|
||||
const QVariant& a16) {
|
||||
void* symbol = lisp_functions.value(pkgFun);
|
||||
if (!symbol) {
|
||||
if (symbol == nullptr) {
|
||||
int p = pkgFun.indexOf(':');
|
||||
QByteArray pkg = (p == -1) ? "qml-user" : pkgFun.left(p);
|
||||
QByteArray fun = pkgFun.mid(pkgFun.lastIndexOf(':') + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue