mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-25 03:20:40 -08:00
add cpp-lib example; some fixes
This commit is contained in:
parent
7a4bff3c20
commit
eb54b6fd41
12 changed files with 144 additions and 11 deletions
|
|
@ -250,7 +250,8 @@ cl_object qload_cpp(cl_object l_lib_name, cl_object l_unload) { /// qload-c++
|
|||
if (ini) {
|
||||
QObject* main = ini();
|
||||
if (main) {
|
||||
ecl_return1(ecl_process_env(), ECL_T);
|
||||
cl_object l_ret = from_qobject_pointer(main);
|
||||
ecl_return1(ecl_process_env(), l_ret);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -391,8 +392,9 @@ cl_object qlog2(cl_object l_msg) {
|
|||
cl_object qinvoke_method2(cl_object l_obj, cl_object l_name, cl_object l_args) {
|
||||
// for internal use: this is used to call user defined JS functions, and to
|
||||
// call user defined Qt/C++ plugin functions.
|
||||
// Max. 10 arguments of type T, NIL, INTEGER, FLOAT, STRING, (nested) LIST of
|
||||
// mentioned arguments. On Qt side, only QVariant arguments are allowed.
|
||||
// Max. 10 arguments of type T, NIL, INTEGER, FLOAT, STRING, VECTOR of
|
||||
// octets, (nested) LIST of mentioned arguments. On Qt side, only QVariant
|
||||
// arguments are allowed.
|
||||
// N.B. does not support default arguments, if used to call JS functions
|
||||
ecl_process_env()->nvalues = 1;
|
||||
const int MAX = 10;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue