mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
main.c:
give instruction address in opcode dump main.qc: more test code
This commit is contained in:
parent
504d03a21a
commit
a35c049744
2 changed files with 9 additions and 2 deletions
|
@ -62,8 +62,10 @@ main ()
|
|||
Sys_Error ("couldn't load %s\n", "qwaq.dat");
|
||||
|
||||
*progs.edicts = PR_InitEdicts (&progs, MAX_EDICTS);
|
||||
for (i = 0; i < progs.progs->numstatements; i++)
|
||||
for (i = 0; i < progs.progs->numstatements; i++) {
|
||||
printf ("%-6d ", i);
|
||||
PR_PrintStatement (&progs, &progs.pr_statements[i]);
|
||||
}
|
||||
#if 0
|
||||
printf ("\n");
|
||||
for (i = 0; i < progs.progs->numfunctions; i++) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
float foo = 1;
|
||||
float bar = 1;
|
||||
float snafu = 2;
|
||||
|
||||
float () main =
|
||||
{
|
||||
|
@ -33,5 +34,9 @@ void (float x) test =
|
|||
local string str;
|
||||
local float urk = 0;
|
||||
|
||||
print ("owie");
|
||||
if (urk) {
|
||||
urk = foo || snafu;
|
||||
} else {
|
||||
print ("owie");
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue