This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code_scheme name="Project" version="173"> | |
<Objective-C> | |
<option name="INDENT_NAMESPACE_MEMBERS" value="0" /> | |
<option name="FUNCTION_PARAMETERS_WRAP" value="5" /> | |
<option name="FUNCTION_CALL_ARGUMENTS_WRAP" value="5" /> | |
<option name="SHIFT_OPERATION_WRAP" value="5" /> | |
<option name="TEMPLATE_PARAMETERS_WRAP" value="5" /> | |
<option name="TEMPLATE_CALL_ARGUMENTS_WRAP" value="5" /> | |
<option name="CLASS_CONSTRUCTOR_INIT_LIST_NEW_LINE_BEFORE_COLON" value="0" /> | |
<option name="CLASS_CONSTRUCTOR_INIT_LIST_NEW_LINE_AFTER_COLON" value="1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <threads.h> | |
namespace SE { | |
static | |
ecs_os_thread_t stdcpp_thread_new( | |
ecs_os_thread_callback_t callback, | |
void *arg) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
template<typename T> | |
struct TPoint { | |
T X; | |
T Y; | |
}; | |
template<typename T> | |
bool operator==(const TPoint<T> &Point, const TPoint<T> &Other) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <Array/UtilityArray.h> | |
namespace SE { | |
struct HHandle { | |
uint32 UnorderedIndex; | |
uint32 Generation; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <Allocator/Allocator.h> | |
namespace SE { | |
template<typename T> | |
class TArrayConstIterator { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <Array/Array.h> | |
namespace SE { | |
struct FHandle { | |
uint32 UnorderedIndex; | |
uint32 Generation; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "Utility/Debug.h" | |
#include "Handle.h" | |
template < | |
typename KeyType, | |
typename ValueType, | |
uint16 InitialSize> | |
class THandleStorage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License | |
// Copyright (c) 2019 Erin Catto | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// One would want to fetch all include directories from all the targets your main executable is linked against (and executable itself) | |
// Then you need to provide WinSDK include paths (the ones MSVS uses) | |
// Finally feed them in format of -I<argN> args in function clang_parseTranslationUnit in your LIBCLANG_APP | |
// Important part of my CMakeLists.txt is provided below | |
// Find script is available here https://github.com/rpavlik/cmake-modules/blob/master/FindWindowsSDK.cmake | |
// Example of your LinkedTargets: it is identical to linking! | |
target_link_libraries (MainExecutable SDL2-static freetype icuuc cAudio sfmt OpenAL) | |
set(LinkedTargets MainExecutable SDL2-static freetype icuuc cAudio sfmt OpenAL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; AutoHotkey Version: 1.1 | |
; Language: English | |
; Platform: Win9x/NT | |
; Author: Yibo | |
; | |
; Script Function: | |
; Define the shortcut Ctrl + Alt + T for launching Git bash in current folder in Windows Explorer | |
; |
NewerOlder