initial
This commit is contained in:
15
vscript/languages/squirrel/sqdbg/testscripts/test.nut
Normal file
15
vscript/languages/squirrel/sqdbg/testscripts/test.nut
Normal file
@@ -0,0 +1,15 @@
|
||||
//loads an external file
|
||||
dofile("utils\\coMmons.nut");
|
||||
|
||||
//declares some locals
|
||||
local x=10;
|
||||
local y="asd"
|
||||
local testy=function(){return 0;}
|
||||
|
||||
|
||||
while(1)
|
||||
{
|
||||
local ret;
|
||||
ret = TestFunc("param 1","param 2");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
Fagiano <- {
|
||||
livello2 = {
|
||||
livello3 = {
|
||||
[{}]="I'm cool",
|
||||
[([])]=[1,2,3,4,5,6,7,8,9,10],
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function TestFunc(a,b)
|
||||
{
|
||||
local z=100
|
||||
local s="I'm a string"
|
||||
for(local i=0;i<10;i++)
|
||||
Fagiano.cappero(z,i);
|
||||
//index_that_desnt_exist=100; //error
|
||||
return 0;
|
||||
}
|
||||
|
||||
function Fagiano::cappero(a,b)
|
||||
{
|
||||
local ueueueu=100
|
||||
local s={x="I'm a string"}
|
||||
oioioi(1,2)
|
||||
}
|
||||
|
||||
function Fagiano::oioioi(a,b)
|
||||
{
|
||||
local frrrr=100
|
||||
local xyz={x="I'm a string"}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user