mirror of
https://github.com/zeldaret/st
synced 2026-08-24 07:20:15 -04:00
Add support for clangd in the python tools (#120)
* initial clangd support through python * update install instructions * invert configure.py behavior * fix oopsie * fix few issues from clangd * fix related build issues
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ typedef struct FileInfos {
|
||||
|
||||
// .cib
|
||||
typedef struct CourseInitEntry {
|
||||
/* 00 */ const char name[16];
|
||||
/* 00 */ char name[16];
|
||||
/* 10 */ STRUCT_PAD(0x10, 0x24);
|
||||
} CourseInitEntry; // size = 0x24
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#define GLOBAL_H
|
||||
|
||||
// Prevent the IDE from reporting errors that the compiler/linker won't report
|
||||
#ifdef __INTELLISENSE__
|
||||
#ifndef __MWERKS__
|
||||
#endif
|
||||
|
||||
// start of thumb region, using thumb instructions
|
||||
|
||||
+9
-9
@@ -50,20 +50,20 @@ public:
|
||||
~AutoInstance() {}
|
||||
};
|
||||
|
||||
#define DECL_INSTANCE_CTOR(T, gpInstance) \
|
||||
#define DECL_INSTANCE_CTOR(type, gpInstance) \
|
||||
template <typename T> Instance<T>::Instance() { \
|
||||
gpInstance = (T *) this; \
|
||||
gpInstance = (type *) this; \
|
||||
} \
|
||||
template class Instance<T>;
|
||||
template class Instance<type>;
|
||||
|
||||
#define DECL_INSTANCE_DTOR(T, gpInstance) \
|
||||
Instance<T>::~Instance() { \
|
||||
gpInstance = NULL; \
|
||||
#define DECL_INSTANCE_DTOR(type, gpInstance) \
|
||||
template <> Instance<type>::~Instance() { \
|
||||
gpInstance = NULL; \
|
||||
}
|
||||
|
||||
#define DECL_INSTANCE(T, gpInstance) \
|
||||
DECL_INSTANCE_CTOR(T, gpInstance) \
|
||||
DECL_INSTANCE_DTOR(T, gpInstance)
|
||||
#define DECL_INSTANCE(type, gpInstance) \
|
||||
DECL_INSTANCE_CTOR(type, gpInstance) \
|
||||
DECL_INSTANCE_DTOR(type, gpInstance)
|
||||
|
||||
template <typename T> struct StaticInstance {
|
||||
static T sInstance;
|
||||
|
||||
Reference in New Issue
Block a user