summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qtscriptextensions.qdoc
blob: 24fb25481294cc297442edb81ad1fcd83b97af29 (plain)
1
2
3
4
5
6
7
//! [0]
print("importing " + __extension__);
__setupPackage__("cool.stuff");

cool.stuff.add = function(a, b) { return a + b; }
cool.stuff.subtract = function(a, b) { return a - b; }
//! [0]