We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 956a621 commit 1995561Copy full SHA for 1995561
codemirror/qb-lang.js
@@ -40,7 +40,8 @@ CodeMirror.defineMode("qbjs", function(conf, parserConf) {
40
'_?backgroundcolor', '_?blue', '_?blue32', '_?capslock', '_?ceil', '_?commandcount', '_?continue', '_?copyimage',
41
'_?cosh', '_?cot', '_?coth', '_?csc', '_?csch', '_?cwd',
42
'_?defaultcolor', '_?d2g', '_?d2r', '_?deflate', '_?desktopwidth', '_?desktopheight',
43
- '_?delay', '_?dest', '_?dir', '_?direxists', '_?display', '_?echo', '_?fileexists', '_?font', '_?fontwidth', '_?fontheight',
+ '_?delay', '_?dest', '_?dir', '_?direxists', '_?display',
44
+ '_?echo', '_?environcount', '_?fileexists', '_?font', '_?fontwidth', '_?fontheight',
45
'_?freeimage', '_?fullscreen', '_?g2d', '_?g2r', '_?green', '_?green32', '_?height', '_?hypot', "_?inflate",
46
'_?instrrev', '_?limit', '_?keyclear', '_?keydown', '_?keyhit', '_?loadfont', '_?loadimage',
47
'_?mousebutton', '_?mousehide', '_?mouseinput', '_?mouseshow', '_?mousewheel', '_?mousex', '_?mousey',
qb.js
@@ -414,6 +414,11 @@ var QB = new function() {
414
console.log(msg);
415
};
416
417
+ this.func__EnvironCount = function() {
418
+ /* no-op: included for compatibility */
419
+ return 0;
420
+ };
421
+
422
this.func__FileExists = function(path) {
423
var vfs = GX.vfs();
424
var file = vfs.getNode(path, GX.vfsCwd());
qb2js.js
@@ -3420,6 +3420,7 @@ if (QB.halted()) { return; };
3420
await sub_AddQBMethod( "FUNCTION" , "_Display" , False);
3421
await sub_AddQBMethod( "SUB" , "_Display" , False);
3422
await sub_AddQBMethod( "SUB" , "_Echo" , False);
3423
+ await sub_AddQBMethod( "FUNCTION" , "_EnvironCount" , False);
3424
await sub_AddQBMethod( "FUNCTION" , "_FileExists" , False);
3425
await sub_AddQBMethod( "FUNCTION" , "_Font" , False);
3426
await sub_AddQBMethod( "SUB" , "_Font" , False);
tools/qb2js.bas
@@ -3646,6 +3646,7 @@ Sub InitQBMethods
3646
AddQBMethod "FUNCTION", "_Display", False
3647
AddQBMethod "SUB", "_Display", False
3648
AddQBMethod "SUB", "_Echo", False
3649
+ AddQBMethod "FUNCTION", "_EnvironCount", False
3650
AddQBMethod "FUNCTION", "_FileExists", False
3651
AddQBMethod "FUNCTION", "_Font", False
3652
AddQBMethod "SUB", "_Font", False
0 commit comments