mirror of
https://github.com/zeldaret/st
synced 2026-08-30 09:11:26 -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:
+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