Add C syntax highlighting to readme

This commit is contained in:
Happy 2020-04-07 08:18:15 -07:00 committed by GitHub
parent f2c61c14c4
commit f1e077c532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -359,11 +359,13 @@ value in the prototype with intptr_t (arg0, arg1, ...stay int).
Add the following code snippet to q_shared.h: Add the following code snippet to q_shared.h:
#ifdef Q3_VM ```c
typedef int intptr_t; #ifdef Q3_VM
#else typedef int intptr_t;
#include <stdint.h> #else
#endif #include <stdint.h>
#endif
```
Note if you simply wish to run mods on a 64bit platform you do not need to Note if you simply wish to run mods on a 64bit platform you do not need to
recompile anything since by default Q3 uses a virtual machine system. recompile anything since by default Q3 uses a virtual machine system.