Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #emit SYSREQ.C generating wrong native index for unused natives
This commit fixes a bug where the compiler generated incorrect native index in assembly code for natives invoked via #emit sysreq.c and not called elsewhere with the normal syntax. See 4) here: http://forum.sa-mp.com/showthread.php?t=355877 --------- test code -------- native print(const s[]); native printf(const format[], ...); main() { new string[] = "hi there!"; printf(string); #emit push.s string #emit push.c 4 #emit sysreq.c print #emit sysreq.c printf } ----- end of test code -----
- Loading branch information