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. FossilOrigin-Name: 1ee33c99835abc029ac202afad1f9b3bf26028e55ea1c53c53416c7566ef749d
This commit is contained in:
parent
2fc4599331
commit
0bbe1c8bee
5 changed files with 73 additions and 8 deletions
|
@ -23,6 +23,10 @@ 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue