From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Progs.dat (QuakeC)" |
|---|
| claim | "In QuakeC a function whose first_statement is negative is an engine builtin: OP_CALLn calls pr_builtins[-first_statement] in native code instead of interpreting statements." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Progs.dat (QuakeC)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "OP_CALL0..OP_CALL8 on a function with first_statement < 0" |
|---|
| effect | "native builtin number -first_statement is called; out-of-range numbers raise "Bad builtin call number"" |
|---|
| function | "PR_ExecuteProgram" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "WinQuake/pr_exec.c OP_CALL handling (commit bf4ac42)." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "LibreQuake v0.09-beta progs.dat has 67 functions with negative first_statement (numbers 1, 2, 3, 4, 6, ...), qwprogs.dat 70. In these FTEQCC-built files the builtins' names are empty strings, so they can only be identified by number." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Builtin calls" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:20:52.984Z" |
|---|
| verifications | |
|---|