Differences From Artifact [1ced1650a0]:
- File src/protos.h — part of check-in [5e7a0895eb] at 2024-08-02 11:09:08 on branch trunk — Fix crash when compiled with Clang (user: js, size: 9324) [annotate] [blame] [check-ins using]
To Artifact [135758e2d7]:
- File
src/protos.h
— part of check-in
[1ee33c9983]
at
2024-08-03 14:50:31
on branch trunk
— Don't depend on global constructors for commands
This breaks when using ObjC, as these can run before the ObjC module is initialized, resulting in non-working message sends as the selectors are not registered yet. (user: js, size: 9432) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | // console extern void keypress(int code, bool isdown, int cooked); extern void renderconsole(); extern void conoutf(const char *s, ...); extern char *getcurcommand(); extern void writebinds(FILE *f); // menus extern bool rendermenu(); extern void menuset(int menu); extern void menumanual(int m, int n, char *text); extern void sortmenu(int start, int num); extern bool menukey(int code, bool isdown); extern void newmenu(char *name); | > > > > | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | // console extern void keypress(int code, bool isdown, int cooked); extern void renderconsole(); extern void conoutf(const char *s, ...); extern char *getcurcommand(); extern void writebinds(FILE *f); // init extern void enqueueInit(const char *name, void (^init)(void)); extern void processInitQueue(void); // menus extern bool rendermenu(); extern void menuset(int menu); extern void menumanual(int m, int n, char *text); extern void sortmenu(int start, int num); extern bool menukey(int code, bool isdown); extern void newmenu(char *name); |
︙ | ︙ |