mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-16 15:20:49 -08:00
another review of "qml-lisp"
This commit is contained in:
parent
140e793040
commit
43abbe2415
7 changed files with 84 additions and 50 deletions
18
examples/M-modules/quick/qml-lisp/eql5.js
Normal file
18
examples/M-modules/quick/qml-lisp/eql5.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// helper functions for convenient QML/EQL5 integration
|
||||
|
||||
function fun(name, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
||||
var args = []
|
||||
if(undefined != arg1) args.push(arg1)
|
||||
if(undefined != arg2) args.push(arg2)
|
||||
if(undefined != arg3) args.push(arg3)
|
||||
if(undefined != arg4) args.push(arg4)
|
||||
if(undefined != arg5) args.push(arg5)
|
||||
if(undefined != arg6) args.push(arg6)
|
||||
if(undefined != arg7) args.push(arg7)
|
||||
if(undefined != arg8) args.push(arg8)
|
||||
if(undefined != arg9) args.push(arg9)
|
||||
return EQL5.apply(name, args) }
|
||||
|
||||
function apply(name, args) {
|
||||
return EQL5.apply(name, args) }
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue