| ... | ... |
@@ -17,8 +17,7 @@ |
| 17 | 17 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 18 | 18 |
*/ |
| 19 | 19 |
|
| 20 |
-#ifndef FIFO_H |
|
| 21 |
-#define FIFO_H |
|
| 20 |
+#pragma once |
|
| 22 | 21 |
|
| 23 | 22 |
#include "types.h" |
| 24 | 23 |
|
| ... | ... |
@@ -37,5 +36,3 @@ extern void IPC_FIFOinit(uint8_t proc); |
| 37 | 36 |
extern void IPC_FIFOsend(uint8_t proc, uint32_t val); |
| 38 | 37 |
extern uint32_t IPC_FIFOrecv(uint8_t proc); |
| 39 | 38 |
extern void IPC_FIFOcnt(uint8_t proc, uint16_t val); |
| 40 |
- |
|
| 41 |
-#endif |
| ... | ... |
@@ -17,8 +17,7 @@ |
| 17 | 17 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 18 | 18 |
*/ |
| 19 | 19 |
|
| 20 |
-#ifndef MMU_H |
|
| 21 |
-#define MMU_H |
|
| 20 |
+#pragma once |
|
| 22 | 21 |
|
| 23 | 22 |
#include "FIFO.h" |
| 24 | 23 |
#include "mem.h" |
| ... | ... |
@@ -812,5 +811,3 @@ template<int PROCNUM, MMU_ACCESS_TYPE AT> inline uint32_t _MMU_read32(uint32_t a |
| 812 | 811 |
template<int PROCNUM, MMU_ACCESS_TYPE AT> inline void _MMU_write08(uint32_t addr, uint8_t val) { _MMU_write08(PROCNUM, AT, addr, val); }
|
| 813 | 812 |
template<int PROCNUM, MMU_ACCESS_TYPE AT> inline void _MMU_write16(uint32_t addr, uint16_t val) { _MMU_write16(PROCNUM, AT, addr, val); }
|
| 814 | 813 |
template<int PROCNUM, MMU_ACCESS_TYPE AT> inline void _MMU_write32(uint32_t addr, uint32_t val) { _MMU_write32(PROCNUM, AT, addr, val); }
|
| 815 |
- |
|
| 816 |
-#endif |
| ... | ... |
@@ -20,8 +20,7 @@ |
| 20 | 20 |
// this file is split from MMU.h for the purpose of avoiding ridiculous recompile times |
| 21 | 21 |
// when changing it, because practically everything includes MMU.h. |
| 22 | 22 |
|
| 23 |
-#ifndef MMUTIMING_H |
|
| 24 |
-#define MMUTIMING_H |
|
| 23 |
+#pragma once |
|
| 25 | 24 |
|
| 26 | 25 |
#include <algorithm> |
| 27 | 26 |
#include <cmath> |
| ... | ... |
@@ -382,5 +381,3 @@ template<int PROCNUM> inline uint32_t MMU_fetchExecuteCycles(uint32_t executeCyc |
| 382 | 381 |
} |
| 383 | 382 |
return executeCycles; |
| 384 | 383 |
} |
| 385 |
- |
|
| 386 |
-#endif // MMUTIMING_H |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef NDSSYSTEM_H |
|
| 20 |
-#define NDSSYSTEM_H |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include <memory> |
| 23 | 22 |
#include <string> |
| ... | ... |
@@ -331,5 +330,3 @@ extern struct TCommonSettings |
| 331 | 330 |
bool spu_captureMuted; |
| 332 | 331 |
bool spu_advanced; |
| 333 | 332 |
} CommonSettings; |
| 334 |
- |
|
| 335 |
-#endif |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef SPU_H |
|
| 20 |
-#define SPU_H |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include <iosfwd> |
| 23 | 22 |
#include <string> |
| ... | ... |
@@ -207,5 +206,3 @@ extern int spu_core_samples; |
| 207 | 206 |
// but at least defining it somewhere is probably a step in the right direction |
| 208 | 207 |
const int DESMUME_SAMPLE_RATE = 44100; |
| 209 | 208 |
//#define DESMUME_SAMPLE_RATE 48000 |
| 210 |
- |
|
| 211 |
-#endif |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef ARM_JIT |
|
| 20 |
-#define ARM_JIT |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include "types.h" |
| 23 | 22 |
|
| ... | ... |
@@ -62,6 +61,3 @@ inline uintptr_t &JIT_COMPILED_FUNC_PREMASKED(uint32_t adr, uint32_t PROCNUM, ui |
| 62 | 61 |
#define JIT_COMPILED_FUNC_KNOWNBANK(adr, bank, mask, ofs) JIT_COMPILED_FUNC(adr, PROCNUM) |
| 63 | 62 |
inline bool JIT_MAPPED(uint32_t adr, uint32_t PROCNUM) { return true; }
|
| 64 | 63 |
#endif |
| 65 |
- |
|
| 66 |
- |
|
| 67 |
-#endif |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef ARM_CPU |
|
| 20 |
-#define ARM_CPU |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include "types.h" |
| 23 | 22 |
#include "bits.h" |
| ... | ... |
@@ -245,5 +244,3 @@ inline void NDS_makeIrq(int PROCNUM, uint32_t num) |
| 245 | 244 |
{
|
| 246 | 245 |
setIF(PROCNUM, 1 << num); |
| 247 | 246 |
} |
| 248 |
- |
|
| 249 |
-#endif |
| ... | ... |
@@ -1,5 +1,4 @@ |
| 1 |
-#ifndef BITS_H |
|
| 2 |
-#define BITS_H |
|
| 1 |
+#pragma once |
|
| 3 | 2 |
|
| 4 | 3 |
inline uint32_t BIT(uint32_t n) { return 1 << n; }
|
| 5 | 4 |
|
| ... | ... |
@@ -40,5 +39,3 @@ inline uint32_t BIT31(uint32_t i) { return i >> 31; }
|
| 40 | 39 |
inline uint32_t CONDITION(uint32_t i) { return i >> 28; }
|
| 41 | 40 |
|
| 42 | 41 |
inline uint32_t REG_POS(uint32_t i, uint32_t n) { return (i >> n) & 0xF; }
|
| 43 |
- |
|
| 44 |
-#endif |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef __CP15_H__ |
|
| 20 |
-#define __CP15_H__ |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include "armcpu.h" |
| 23 | 22 |
|
| ... | ... |
@@ -110,5 +109,3 @@ public: |
| 110 | 109 |
|
| 111 | 110 |
extern armcp15_t cp15; |
| 112 | 111 |
void maskPrecalc(); |
| 113 |
- |
|
| 114 |
-#endif /* __CP15_H__*/ |
| ... | ... |
@@ -24,8 +24,7 @@ THE SOFTWARE. |
| 24 | 24 |
|
| 25 | 25 |
// don't use emufile for files bigger than 2GB! you have been warned! some day this will be fixed. |
| 26 | 26 |
|
| 27 |
-#ifndef EMUFILE_H |
|
| 28 |
-#define EMUFILE_H |
|
| 27 |
+#pragma once |
|
| 29 | 28 |
|
| 30 | 29 |
#include <vector> |
| 31 | 30 |
#include <algorithm> |
| ... | ... |
@@ -208,5 +207,3 @@ public: |
| 208 | 207 |
return len; |
| 209 | 208 |
} |
| 210 | 209 |
}; |
| 211 |
- |
|
| 212 |
-#endif |
| ... | ... |
@@ -15,8 +15,7 @@ |
| 15 | 15 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
-#ifndef _FIRMWARE_H_ |
|
| 19 |
-#define _FIRMWARE_H_ |
|
| 18 |
+#pragma once |
|
| 20 | 19 |
|
| 21 | 20 |
#include <memory> |
| 22 | 21 |
#include "types.h" |
| ... | ... |
@@ -80,5 +79,3 @@ public: |
| 80 | 79 |
|
| 81 | 80 |
int copy_firmware_user_data(uint8_t *dest_buffer, const uint8_t *fw_data); |
| 82 | 81 |
void NDS_FillDefaultFirmwareConfigData(struct NDS_fw_config_data *fw_config); |
| 83 |
- |
|
| 84 |
-#endif |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef instruction_attributes_H_ |
|
| 20 |
-#define instruction_attributes_H_ |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include "types.h" |
| 23 | 22 |
|
| ... | ... |
@@ -5170,5 +5169,3 @@ INSTR_CYCLES(4) | BRANCH_ALWAYS, //OP_BL_11 |
| 5170 | 5169 |
INSTR_CYCLES(4) | BRANCH_ALWAYS, //OP_BL_11 |
| 5171 | 5170 |
INSTR_CYCLES(4) | BRANCH_ALWAYS, //OP_BL_11 |
| 5172 | 5171 |
}; |
| 5173 |
- |
|
| 5174 |
-#endif |
| ... | ... |
@@ -15,13 +15,10 @@ |
| 15 | 15 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
-#ifndef _INSTRUCIONS_H_ |
|
| 19 |
-#define _INSTRUCIONS_H_ |
|
| 18 |
+#pragma once |
|
| 20 | 19 |
|
| 21 | 20 |
typedef uint32_t (FASTCALL *OpFunc)(uint32_t i); |
| 22 | 21 |
extern const OpFunc arm_instructions_set[2][4096]; |
| 23 |
-extern const char* arm_instruction_names[4096]; |
|
| 22 |
+extern const char *arm_instruction_names[4096]; |
|
| 24 | 23 |
extern const OpFunc thumb_instructions_set[2][1024]; |
| 25 |
-extern const char* thumb_instruction_names[1024]; |
|
| 26 |
- |
|
| 27 |
-#endif |
|
| 24 |
+extern const char *thumb_instruction_names[1024]; |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef MATRIX_H |
|
| 20 |
-#define MATRIX_H |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include <cmath> |
| 23 | 22 |
#include <cstring> |
| ... | ... |
@@ -62,5 +61,3 @@ inline int32_t s32floor(double d) |
| 62 | 61 |
{
|
| 63 | 62 |
return s32floor(static_cast<float>(d)); |
| 64 | 63 |
} |
| 65 |
- |
|
| 66 |
-#endif |
| ... | ... |
@@ -17,8 +17,7 @@ |
| 17 | 17 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 18 | 18 |
*/ |
| 19 | 19 |
|
| 20 |
-#ifndef __FW_H__ |
|
| 21 |
-#define __FW_H__ |
|
| 20 |
+#pragma once |
|
| 22 | 21 |
|
| 23 | 22 |
#include <vector> |
| 24 | 23 |
#include <string> |
| ... | ... |
@@ -162,5 +161,3 @@ struct SAVE_TYPE |
| 162 | 161 |
int media_type; |
| 163 | 162 |
int size; |
| 164 | 163 |
}; |
| 165 |
- |
|
| 166 |
-#endif /*__FW_H__*/ |
| ... | ... |
@@ -17,8 +17,7 @@ |
| 17 | 17 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 18 | 18 |
*/ |
| 19 | 19 |
|
| 20 |
-#ifndef MEM_H |
|
| 21 |
-#define MEM_H |
|
| 20 |
+#pragma once |
|
| 22 | 21 |
|
| 23 | 22 |
#include <cstdlib> |
| 24 | 23 |
#include <cassert> |
| ... | ... |
@@ -129,5 +128,3 @@ inline void T1WriteQuad(uint8_t *const mem, uint32_t addr, uint64_t val) |
| 129 | 128 |
*reinterpret_cast<uint64_t *>(mem + addr) = val; |
| 130 | 129 |
#endif |
| 131 | 130 |
} |
| 132 |
- |
|
| 133 |
-#endif |
| ... | ... |
@@ -15,8 +15,7 @@ |
| 15 | 15 |
* along with SPU2-X. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
-#ifndef SNDOUT_H |
|
| 19 |
-#define SNDOUT_H |
|
| 18 |
+#pragma once |
|
| 20 | 19 |
|
| 21 | 20 |
#include <memory> |
| 22 | 21 |
#include <algorithm> |
| ... | ... |
@@ -213,5 +212,3 @@ public: |
| 213 | 212 |
memset(bData, 0, quietSamples * sizeof(T)); |
| 214 | 213 |
} |
| 215 | 214 |
}; |
| 216 |
- |
|
| 217 |
-#endif |
| ... | ... |
@@ -41,8 +41,7 @@ |
| 41 | 41 |
// |
| 42 | 42 |
//////////////////////////////////////////////////////////////////////////////// |
| 43 | 43 |
|
| 44 |
-#ifndef AAFilter_H |
|
| 45 |
-#define AAFilter_H |
|
| 44 |
+#pragma once |
|
| 46 | 45 |
|
| 47 | 46 |
#include "FIRFilter.h" |
| 48 | 47 |
|
| ... | ... |
@@ -83,5 +82,3 @@ public: |
| 83 | 82 |
}; |
| 84 | 83 |
|
| 85 | 84 |
} |
| 86 |
- |
|
| 87 |
-#endif |
| ... | ... |
@@ -43,8 +43,7 @@ |
| 43 | 43 |
// |
| 44 | 44 |
//////////////////////////////////////////////////////////////////////////////// |
| 45 | 45 |
|
| 46 |
-#ifndef FIFOSampleBuffer_H |
|
| 47 |
-#define FIFOSampleBuffer_H |
|
| 46 |
+#pragma once |
|
| 48 | 47 |
|
| 49 | 48 |
#include <memory> |
| 50 | 49 |
#include "FIFOSamplePipe.h" |
| ... | ... |
@@ -171,5 +170,3 @@ public: |
| 171 | 170 |
}; |
| 172 | 171 |
|
| 173 | 172 |
} |
| 174 |
- |
|
| 175 |
-#endif |
| ... | ... |
@@ -45,8 +45,7 @@ |
| 45 | 45 |
// |
| 46 | 46 |
//////////////////////////////////////////////////////////////////////////////// |
| 47 | 47 |
|
| 48 |
-#ifndef FIFOSamplePipe_H |
|
| 49 |
-#define FIFOSamplePipe_H |
|
| 48 |
+#pragma once |
|
| 50 | 49 |
|
| 51 | 50 |
#include <cassert> |
| 52 | 51 |
#include "STTypes.h" |
| ... | ... |
@@ -215,5 +214,3 @@ public: |
| 215 | 214 |
}; |
| 216 | 215 |
|
| 217 | 216 |
} |
| 218 |
- |
|
| 219 |
-#endif |
| ... | ... |
@@ -39,8 +39,7 @@ |
| 39 | 39 |
// |
| 40 | 40 |
//////////////////////////////////////////////////////////////////////////////// |
| 41 | 41 |
|
| 42 |
-#ifndef FIRFilter_H |
|
| 43 |
-#define FIRFilter_H |
|
| 42 |
+#pragma once |
|
| 44 | 43 |
|
| 45 | 44 |
#include <memory> |
| 46 | 45 |
#include "STTypes.h" |
| ... | ... |
@@ -127,5 +126,3 @@ public: |
| 127 | 126 |
#endif // SOUNDTOUCH_ALLOW_SSE |
| 128 | 127 |
|
| 129 | 128 |
} |
| 130 |
- |
|
| 131 |
-#endif // FIRFilter_H |
| ... | ... |
@@ -42,8 +42,7 @@ |
| 42 | 42 |
// |
| 43 | 43 |
//////////////////////////////////////////////////////////////////////////////// |
| 44 | 44 |
|
| 45 |
-#ifndef RateTransposer_H |
|
| 46 |
-#define RateTransposer_H |
|
| 45 |
+#pragma once |
|
| 47 | 46 |
|
| 48 | 47 |
#include "AAFilter.h" |
| 49 | 48 |
#include "FIFOSampleBuffer.h" |
| ... | ... |
@@ -141,5 +140,3 @@ public: |
| 141 | 140 |
}; |
| 142 | 141 |
|
| 143 | 142 |
} |
| 144 |
- |
|
| 145 |
-#endif |
| ... | ... |
@@ -36,8 +36,7 @@ |
| 36 | 36 |
// |
| 37 | 37 |
//////////////////////////////////////////////////////////////////////////////// |
| 38 | 38 |
|
| 39 |
-#ifndef STTypes_H |
|
| 40 |
-#define STTypes_H |
|
| 39 |
+#pragma once |
|
| 41 | 40 |
|
| 42 | 41 |
#include <cstdint> |
| 43 | 42 |
|
| ... | ... |
@@ -130,5 +129,3 @@ inline uintptr_t SOUNDTOUCH_ALIGN_POINTER_16(SAMPLETYPE *x) { return (reinterpre
|
| 130 | 129 |
//#define SOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER 1 |
| 131 | 130 |
|
| 132 | 131 |
} |
| 133 |
- |
|
| 134 |
-#endif |
| ... | ... |
@@ -69,8 +69,7 @@ |
| 69 | 69 |
// |
| 70 | 70 |
//////////////////////////////////////////////////////////////////////////////// |
| 71 | 71 |
|
| 72 |
-#ifndef SoundTouch_H |
|
| 73 |
-#define SoundTouch_H |
|
| 72 |
+#pragma once |
|
| 74 | 73 |
|
| 75 | 74 |
#include <memory> |
| 76 | 75 |
#include "FIFOSamplePipe.h" |
| ... | ... |
@@ -238,5 +237,3 @@ public: |
| 238 | 237 |
}; |
| 239 | 238 |
|
| 240 | 239 |
} |
| 241 |
- |
|
| 242 |
-#endif |
| ... | ... |
@@ -41,8 +41,7 @@ |
| 41 | 41 |
// |
| 42 | 42 |
//////////////////////////////////////////////////////////////////////////////// |
| 43 | 43 |
|
| 44 |
-#ifndef TDStretch_H |
|
| 45 |
-#define TDStretch_H |
|
| 44 |
+#pragma once |
|
| 46 | 45 |
|
| 47 | 46 |
#include <memory> |
| 48 | 47 |
#include "RateTransposer.h" |
| ... | ... |
@@ -243,5 +242,3 @@ protected: |
| 243 | 242 |
#endif /// SOUNDTOUCH_ALLOW_SSE |
| 244 | 243 |
|
| 245 | 244 |
} |
| 246 |
- |
|
| 247 |
-#endif /// TDStretch_H |
| ... | ... |
@@ -40,8 +40,7 @@ |
| 40 | 40 |
// |
| 41 | 41 |
//////////////////////////////////////////////////////////////////////////////// |
| 42 | 42 |
|
| 43 |
-#ifndef _CPU_DETECT_H_ |
|
| 44 |
-#define _CPU_DETECT_H_ |
|
| 43 |
+#pragma once |
|
| 45 | 44 |
|
| 46 | 45 |
#include "STTypes.h" |
| 47 | 46 |
|
| ... | ... |
@@ -56,5 +55,3 @@ uint32_t detectCPUextensions(); |
| 56 | 55 |
|
| 57 | 56 |
/// Disables given set of instruction extensions. See SUPPORT_... defines. |
| 58 | 57 |
void disableExtensions(uint32_t wDisableMask); |
| 59 |
- |
|
| 60 |
-#endif // _CPU_DETECT_H_ |
| ... | ... |
@@ -20,8 +20,7 @@ |
| 20 | 20 |
// and is designed to be as portable between multiple emulators |
| 21 | 21 |
// ------------------------- |
| 22 | 22 |
|
| 23 |
-#ifndef _METASPU_H_ |
|
| 24 |
-#define _METASPU_H_ |
|
| 23 |
+#pragma once |
|
| 25 | 24 |
|
| 26 | 25 |
#include "../types.h" |
| 27 | 26 |
|
| ... | ... |
@@ -48,5 +47,3 @@ enum ESynchMethod |
| 48 | 47 |
}; |
| 49 | 48 |
|
| 50 | 49 |
ISynchronizingAudioBuffer *metaspu_construct(ESynchMethod method); |
| 51 |
- |
|
| 52 |
-#endif |
| ... | ... |
@@ -15,8 +15,7 @@ |
| 15 | 15 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
-#ifndef _READWRITE_H_ |
|
| 19 |
-#define _READWRITE_H_ |
|
| 18 |
+#pragma once |
|
| 20 | 19 |
|
| 21 | 20 |
#include <iostream> |
| 22 | 21 |
#include <vector> |
| ... | ... |
@@ -42,5 +41,3 @@ int read16le(uint16_t *Bufo, std::istream *is); |
| 42 | 41 |
int readbool(bool *b, EMUFILE *is); |
| 43 | 42 |
|
| 44 | 43 |
int readbuffer(std::vector<uint8_t> &vec, EMUFILE *is); |
| 45 |
- |
|
| 46 |
-#endif |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef REGISTERS_H |
|
| 20 |
-#define REGISTERS_H |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#define REG_REGION_MASK 0x0FFFEF80 |
| 23 | 22 |
#define REG_BASE_DISPx 0x04000000 |
| ... | ... |
@@ -427,5 +426,3 @@ |
| 427 | 426 |
#define EXMEMCNT_MASK_SLOT2_ROM_1ST_TIME (3<<2) |
| 428 | 427 |
#define EXMEMCNT_MASK_SLOT2_ROM_2ND_TIME (1<<4) |
| 429 | 428 |
#define EXMEMCNT_MASK_SLOT2_CLOCKRATE (3<<5) |
| 430 |
- |
|
| 431 |
-#endif |
| ... | ... |
@@ -15,8 +15,7 @@ |
| 15 | 15 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
-#ifndef __SLOT1_H__ |
|
| 19 |
-#define __SLOT1_H__ |
|
| 18 |
+#pragma once |
|
| 20 | 19 |
|
| 21 | 20 |
#include "types.h" |
| 22 | 21 |
|
| ... | ... |
@@ -58,5 +57,3 @@ enum NDS_SLOT1_TYPE |
| 58 | 57 |
NDS_SLOT1_RETAIL, |
| 59 | 58 |
NDS_SLOT1_COUNT // use for counter addons - MUST TO BE LAST!!! |
| 60 | 59 |
}; |
| 61 |
- |
|
| 62 |
-#endif // __ADDONS_H__ |
| ... | ... |
@@ -16,8 +16,7 @@ |
| 16 | 16 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 19 |
-#ifndef TYPES_HPP |
|
| 20 |
-#define TYPES_HPP |
|
| 19 |
+#pragma once |
|
| 21 | 20 |
|
| 22 | 21 |
#include <cstdint> |
| 23 | 22 |
|
| ... | ... |
@@ -138,5 +137,3 @@ template<typename T> inline void reconstruct(T *t) |
| 138 | 137 |
t->~T(); |
| 139 | 138 |
new(t) T(); |
| 140 | 139 |
} |
| 141 |
- |
|
| 142 |
-#endif |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_ASMJIT_H |
|
| 9 |
-#define _ASMJIT_ASMJIT_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
//! @mainpage |
| 12 | 10 |
//! |
| ... | ... |
@@ -337,6 +335,3 @@ |
| 337 | 335 |
#if defined(ASMJIT_X86) || defined(ASMJIT_X64) |
| 338 | 336 |
#include "x86.h" |
| 339 | 337 |
#endif // ASMJIT_X86 || ASMJIT_X64 |
| 340 |
- |
|
| 341 |
-// [Guard] |
|
| 342 |
-#endif // _ASMJIT_ASMJIT_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CONFIG_H |
|
| 9 |
-#define _ASMJIT_CONFIG_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// This file is designed to be modifyable. Platform specific changes should |
| 12 | 10 |
// be applied to this file so it's guaranteed that never versions of AsmJit |
| ... | ... |
@@ -60,6 +58,3 @@ |
| 60 | 58 |
|
| 61 | 59 |
// Setup custom assertion code. |
| 62 | 60 |
// #define ASMJIT_ASSERT(exp) do { if (!(exp)) ::AsmJit::assertionFailure(__FILE__, __LINE__, #exp); } while(0)
|
| 63 |
- |
|
| 64 |
-// [Guard] |
|
| 65 |
-#endif // _ASMJIT_CONFIG_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_H |
|
| 9 |
-#define _ASMJIT_CORE_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "core/build.h" |
| ... | ... |
@@ -32,6 +30,3 @@ |
| 32 | 30 |
#include "core/stringutil.h" |
| 33 | 31 |
#include "core/virtualmemory.h" |
| 34 | 32 |
#include "core/zonememory.h" |
| 35 |
- |
|
| 36 |
-// [Guard] |
|
| 37 |
-#endif // _ASMJIT_CORE_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_ASSEMBLER_H |
|
| 9 |
-#define _ASMJIT_CORE_ASSEMBLER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
#include <vector> |
| 12 | 10 |
|
| ... | ... |
@@ -459,6 +457,3 @@ struct Assembler |
| 459 | 457 |
|
| 460 | 458 |
// [Api-End] |
| 461 | 459 |
#include "../core/apiend.h" |
| 462 |
- |
|
| 463 |
-// [Guard] |
|
| 464 |
-#endif // _ASMJIT_CORE_ASSEMBLER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_ASSERT_H |
|
| 9 |
-#define _ASMJIT_CORE_ASSERT_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -63,6 +61,3 @@ ASMJIT_API void assertionFailure(const char *file, int line, const char *exp); |
| 63 | 61 |
|
| 64 | 62 |
// [Api-End] |
| 65 | 63 |
#include "../core/apiend.h" |
| 66 |
- |
|
| 67 |
-// [Guard] |
|
| 68 |
-#endif // _ASMJIT_CORE_ASSERT_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_BUFFER_H |
|
| 9 |
-#define _ASMJIT_CORE_BUFFER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assert.h" |
| ... | ... |
@@ -334,5 +332,3 @@ struct Buffer |
| 334 | 332 |
|
| 335 | 333 |
// [Api-End] |
| 336 | 334 |
#include "../core/apiend.h" |
| 337 |
- |
|
| 338 |
-#endif // _ASMJIT_CORE_BUFFER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_BUILD_H |
|
| 9 |
-#define _ASMJIT_CORE_BUILD_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Include] |
| 12 | 10 |
#include "../Config.h" |
| ... | ... |
@@ -226,6 +224,3 @@ struct _DontInitialize {};
|
| 226 | 224 |
#ifdef ASMJIT_WINDOWS |
| 227 | 225 |
# include "windowsh_wrapper.h" |
| 228 | 226 |
#endif // ASMJIT_WINDOWS |
| 229 |
- |
|
| 230 |
-// [Guard] |
|
| 231 |
-#endif // _ASMJIT_CORE_BUILD_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_COMPILER_H |
|
| 9 |
-#define _ASMJIT_CORE_COMPILER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assembler.h" |
| ... | ... |
@@ -332,6 +330,3 @@ template<typename T, typename Compiler, typename P1, typename P2, typename P3, t |
| 332 | 330 |
|
| 333 | 331 |
// [Api-End] |
| 334 | 332 |
#include "../core/apiend.h" |
| 335 |
- |
|
| 336 |
-// [Guard] |
|
| 337 |
-#endif // _ASMJIT_CORE_COMPILER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_COMPILERCONTEXT_H |
|
| 9 |
-#define _ASMJIT_CORE_COMPILERCONTEXT_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/compiler.h" |
| ... | ... |
@@ -82,6 +80,3 @@ struct CompilerContext |
| 82 | 80 |
|
| 83 | 81 |
// [Api-End] |
| 84 | 82 |
#include "../core/apiend.h" |
| 85 |
- |
|
| 86 |
-// [Guard] |
|
| 87 |
-#endif // _ASMJIT_CORE_COMPILERCONTEXT_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_COMPILERFUNC_H |
|
| 9 |
-#define _ASMJIT_CORE_COMPILERFUNC_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/compiler.h" |
| ... | ... |
@@ -321,6 +319,3 @@ struct CompilerFuncCall : public CompilerItem |
| 321 | 319 |
|
| 322 | 320 |
// [Api-End] |
| 323 | 321 |
#include "../core/apiend.h" |
| 324 |
- |
|
| 325 |
-// [Guard] |
|
| 326 |
-#endif // _ASMJIT_CORE_COMPILERFUNC_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_COMPILERITEM_H |
|
| 9 |
-#define _ASMJIT_CORE_COMPILERITEM_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/compiler.h" |
| ... | ... |
@@ -512,6 +510,3 @@ struct CompilerInst : public CompilerItem |
| 512 | 510 |
|
| 513 | 511 |
// [Api-End] |
| 514 | 512 |
#include "../core/apiend.h" |
| 515 |
- |
|
| 516 |
-// [Guard] |
|
| 517 |
-#endif // _ASMJIT_CORE_COMPILERITEM_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_CONTEXT_H |
|
| 9 |
-#define _ASMJIT_CORE_CONTEXT_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -135,6 +133,3 @@ struct JitContext : public Context |
| 135 | 133 |
}; |
| 136 | 134 |
|
| 137 | 135 |
} // AsmJit namespace |
| 138 |
- |
|
| 139 |
-// [Guard] |
|
| 140 |
-#endif // _ASMJIT_CORE_CONTEXT_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_CPUINFO_H |
|
| 9 |
-#define _ASMJIT_CORE_CPUINFO_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -106,6 +104,3 @@ struct CpuInfo |
| 106 | 104 |
|
| 107 | 105 |
// [Api-End] |
| 108 | 106 |
#include "../core/apiend.h" |
| 109 |
- |
|
| 110 |
-// [Guard] |
|
| 111 |
-#endif // _ASMJIT_CORE_CPUINFO_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_DEFS_H |
|
| 9 |
-#define _ASMJIT_CORE_DEFS_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -594,6 +592,3 @@ ASMJIT_API const char *getErrorString(uint32_t error); |
| 594 | 592 |
|
| 595 | 593 |
// [Api-End] |
| 596 | 594 |
#include "../core/apiend.h" |
| 597 |
- |
|
| 598 |
-// [Guard] |
|
| 599 |
-#endif // _ASMJIT_CORE_DEFS_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_FUNC_H |
|
| 9 |
-#define _ASMJIT_CORE_FUNC_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assert.h" |
| ... | ... |
@@ -449,6 +447,3 @@ template<typename RET, typename P0, typename P1, typename P2, typename P3, typen |
| 449 | 447 |
|
| 450 | 448 |
// [Api-End] |
| 451 | 449 |
#include "../core/apiend.h" |
| 452 |
- |
|
| 453 |
-// [Guard] |
|
| 454 |
-#endif // _ASMJIT_CORE_FUNC_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_INTUTIL_H |
|
| 9 |
-#define _ASMJIT_CORE_INTUTIL_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assert.h" |
| ... | ... |
@@ -251,6 +249,3 @@ namespace IntUtil |
| 251 | 249 |
|
| 252 | 250 |
// [Api-End] |
| 253 | 251 |
#include "../core/apiend.h" |
| 254 |
- |
|
| 255 |
-// [Guard] |
|
| 256 |
-#endif // _ASMJIT_CORE_INTUTIL_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_LOCK_H |
|
| 9 |
-#define _ASMJIT_CORE_LOCK_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -131,6 +129,3 @@ struct AutoLock |
| 131 | 129 |
|
| 132 | 130 |
// [Api-End] |
| 133 | 131 |
#include "../core/apiend.h" |
| 134 |
- |
|
| 135 |
-// [Guard] |
|
| 136 |
-#endif // _ASMJIT_CORE_LOCK_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_LOGGER_H |
|
| 9 |
-#define _ASMJIT_CORE_LOGGER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -240,6 +238,3 @@ struct StringLogger : public Logger |
| 240 | 238 |
|
| 241 | 239 |
// [Api-End] |
| 242 | 240 |
#include "../core/apiend.h" |
| 243 |
- |
|
| 244 |
-// [Guard] |
|
| 245 |
-#endif // _ASMJIT_CORE_LOGGER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_MEMORYMANAGER_H |
|
| 9 |
-#define _ASMJIT_CORE_MEMORYMANAGER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -168,6 +166,3 @@ struct VirtualMemoryManager : public MemoryManager |
| 168 | 166 |
|
| 169 | 167 |
// [Api-End] |
| 170 | 168 |
#include "../core/apiend.h" |
| 171 |
- |
|
| 172 |
-// [Guard] |
|
| 173 |
-#endif // _ASMJIT_CORE_MEMORYMANAGER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_MEMORYMARKER_H |
|
| 9 |
-#define _ASMJIT_CORE_MEMORYMARKER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -50,6 +48,3 @@ struct MemoryMarker |
| 50 | 48 |
|
| 51 | 49 |
// [Api-End] |
| 52 | 50 |
#include "../core/apiend.h" |
| 53 |
- |
|
| 54 |
-// [Guard] |
|
| 55 |
-#endif // _ASMJIT_CORE_MEMORYMARKER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_OPERAND_H |
|
| 9 |
-#define _ASMJIT_CORE_OPERAND_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/defs.h" |
| ... | ... |
@@ -521,6 +519,3 @@ struct Label : public Operand |
| 521 | 519 |
//! @} |
| 522 | 520 |
|
| 523 | 521 |
} // AsmJit namespace |
| 524 |
- |
|
| 525 |
-// [Guard] |
|
| 526 |
-#endif // _ASMJIT_CORE_OPERAND_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_PODVECTOR_H |
|
| 9 |
-#define _ASMJIT_CORE_PODVECTOR_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assert.h" |
| ... | ... |
@@ -220,5 +218,3 @@ template <typename T> struct PodVector |
| 220 | 218 |
//! @} |
| 221 | 219 |
|
| 222 | 220 |
} // AsmJit namespace |
| 223 |
- |
|
| 224 |
-#endif // _ASMJIT_CORE_PODVECTOR_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_STRINGBUILDER_H |
|
| 9 |
-#define _ASMJIT_CORE_STRINGBUILDER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assert.h" |
| ... | ... |
@@ -179,5 +177,3 @@ template<size_t N> struct StringBuilderT : public StringBuilder |
| 179 | 177 |
//! @} |
| 180 | 178 |
|
| 181 | 179 |
} // AsmJit namespace |
| 182 |
- |
|
| 183 |
-#endif // _ASMJIT_CORE_STRINGBUILDER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_STRINGUTIL_H |
|
| 9 |
-#define _ASMJIT_CORE_STRINGUTIL_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/defs.h" |
| ... | ... |
@@ -41,5 +39,3 @@ struct StringUtil |
| 41 | 39 |
//! @} |
| 42 | 40 |
|
| 43 | 41 |
} // AsmJit namespace |
| 44 |
- |
|
| 45 |
-#endif // _ASMJIT_CORE_STRINGUTIL_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_VIRTUALMEMORY_H |
|
| 9 |
-#define _ASMJIT_CORE_VIRTUALMEMORY_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -76,6 +74,3 @@ struct VirtualMemory |
| 76 | 74 |
|
| 77 | 75 |
// [Api-End] |
| 78 | 76 |
#include "../core/apiend.h" |
| 79 |
- |
|
| 80 |
-// [Guard] |
|
| 81 |
-#endif // _ASMJIT_CORE_VIRTUALMEMORY_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_CORE_ZONEMEMORY_H |
|
| 9 |
-#define _ASMJIT_CORE_ZONEMEMORY_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -148,5 +146,3 @@ struct ZoneMemory |
| 148 | 146 |
//! @} |
| 149 | 147 |
|
| 150 | 148 |
} // AsmJit namespace |
| 151 |
- |
|
| 152 |
-#endif // _ASMJIT_CORE_ZONEMEMORY_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_H |
|
| 9 |
-#define _ASMJIT_X86_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "core.h" |
| ... | ... |
@@ -21,6 +19,3 @@ |
| 21 | 19 |
#include "x86/x86func.h" |
| 22 | 20 |
#include "x86/x86operand.h" |
| 23 | 21 |
#include "x86/x86util.h" |
| 24 |
- |
|
| 25 |
-// [Guard] |
|
| 26 |
-#endif // _ASMJIT_X86_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86ASSEMBLER_H |
|
| 9 |
-#define _ASMJIT_X86_X86ASSEMBLER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assembler.h" |
| ... | ... |
@@ -5438,6 +5436,3 @@ struct X86Assembler : public Assembler |
| 5438 | 5436 |
|
| 5439 | 5437 |
// [Api-End] |
| 5440 | 5438 |
#include "../core/apiend.h" |
| 5441 |
- |
|
| 5442 |
-// [Guard] |
|
| 5443 |
-#endif // _ASMJIT_X86_X86ASSEMBLER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86COMPILER_H |
|
| 9 |
-#define _ASMJIT_X86_X86COMPILER_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/build.h" |
| ... | ... |
@@ -4894,6 +4892,3 @@ struct X86Compiler : public Compiler |
| 4894 | 4892 |
|
| 4895 | 4893 |
// [Api-End] |
| 4896 | 4894 |
#include "../core/apiend.h" |
| 4897 |
- |
|
| 4898 |
-// [Guard] |
|
| 4899 |
-#endif // _ASMJIT_X86_X86COMPILER_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86COMPILERCONTEXT_H |
|
| 9 |
-#define _ASMJIT_X86_X86COMPILERCONTEXT_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/intutil.h" |
| ... | ... |
@@ -308,6 +306,3 @@ struct X86CompilerContext : public CompilerContext |
| 308 | 306 |
|
| 309 | 307 |
// [Api-End] |
| 310 | 308 |
#include "../core/apiend.h" |
| 311 |
- |
|
| 312 |
-// [Guard] |
|
| 313 |
-#endif // _ASMJIT_X86_X86COMPILERCONTEXT_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86COMPILERFUNC_H |
|
| 9 |
-#define _ASMJIT_X86_X86COMPILERFUNC_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../x86/x86assembler.h" |
| ... | ... |
@@ -364,6 +362,3 @@ struct X86CompilerFuncCall : public CompilerFuncCall |
| 364 | 362 |
|
| 365 | 363 |
// [Api-End] |
| 366 | 364 |
#include "../core/apiend.h" |
| 367 |
- |
|
| 368 |
-// [Guard] |
|
| 369 |
-#endif // _ASMJIT_X86_X86COMPILERFUNC_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86COMPILERITEM_H |
|
| 9 |
-#define _ASMJIT_X86_X86COMPILERITEM_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../x86/x86assembler.h" |
| ... | ... |
@@ -279,6 +277,3 @@ struct X86CompilerJmpInst : public X86CompilerInst |
| 279 | 277 |
|
| 280 | 278 |
// [Api-End] |
| 281 | 279 |
#include "../core/apiend.h" |
| 282 |
- |
|
| 283 |
-// [Guard] |
|
| 284 |
-#endif // _ASMJIT_X86_X86COMPILERITEM_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86CPUINFO_H |
|
| 9 |
-#define _ASMJIT_X86_X86CPUINFO_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/cpuinfo.h" |
| ... | ... |
@@ -125,6 +123,3 @@ ASMJIT_API void x86CpuDetect(X86CpuInfo* out); |
| 125 | 123 |
|
| 126 | 124 |
// [Api-End] |
| 127 | 125 |
#include "../core/apiend.h" |
| 128 |
- |
|
| 129 |
-// [Guard] |
|
| 130 |
-#endif // _ASMJIT_X86_X86CPUINFO_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86DEFS_H |
|
| 9 |
-#define _ASMJIT_X86_X86DEFS_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/assert.h" |
| ... | ... |
@@ -2198,6 +2196,3 @@ ASMJIT_VAR const X86VarInfo x86VarInfo[]; |
| 2198 | 2196 |
|
| 2199 | 2197 |
// [Api-End] |
| 2200 | 2198 |
#include "../core/apiend.h" |
| 2201 |
- |
|
| 2202 |
-// [Guard] |
|
| 2203 |
-#endif // _ASMJIT_X86_X86DEFS_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86FUNC_H |
|
| 9 |
-#define _ASMJIT_X86_X86FUNC_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/defs.h" |
| ... | ... |
@@ -236,6 +234,3 @@ struct X86FuncDecl : public FuncDecl |
| 236 | 234 |
|
| 237 | 235 |
// [Api-End] |
| 238 | 236 |
#include "../core/apiend.h" |
| 239 |
- |
|
| 240 |
-// [Guard] |
|
| 241 |
-#endif // _ASMJIT_X86_X86FUNC_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86OPERAND_H |
|
| 9 |
-#define _ASMJIT_X86_X86OPERAND_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../core/defs.h" |
| ... | ... |
@@ -1774,6 +1772,3 @@ inline uint8_t mm_shuffle(uint8_t z, uint8_t y, uint8_t x, uint8_t w) { return (
|
| 1774 | 1772 |
//! @} |
| 1775 | 1773 |
|
| 1776 | 1774 |
} // AsmJit namespace |
| 1777 |
- |
|
| 1778 |
-// [Guard] |
|
| 1779 |
-#endif // _ASMJIT_X86_X86OPERAND_H |
| ... | ... |
@@ -4,9 +4,7 @@ |
| 4 | 4 |
// [License] |
| 5 | 5 |
// Zlib - See COPYING file in this package. |
| 6 | 6 |
|
| 7 |
-// [Guard] |
|
| 8 |
-#ifndef _ASMJIT_X86_X86UTIL_H |
|
| 9 |
-#define _ASMJIT_X86_X86UTIL_H |
|
| 7 |
+#pragma once |
|
| 10 | 8 |
|
| 11 | 9 |
// [Dependencies - AsmJit] |
| 12 | 10 |
#include "../x86/x86defs.h" |
| ... | ... |
@@ -118,6 +116,3 @@ struct X86Util |
| 118 | 116 |
|
| 119 | 117 |
// [Api-End] |
| 120 | 118 |
#include "../core/apiend.h" |
| 121 |
- |
|
| 122 |
-// [Guard] |
|
| 123 |
-#endif // _ASMJIT_X86_X86UTIL_H |
| ... | ... |
@@ -18,12 +18,9 @@ |
| 18 | 18 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 19 | 19 |
*/ |
| 20 | 20 |
|
| 21 |
-#ifndef _STRINGUTIL_H_ |
|
| 22 |
-#define _STRINGUTIL_H_ |
|
| 21 |
+#pragma once |
|
| 23 | 22 |
|
| 24 | 23 |
#include <string> |
| 25 | 24 |
#include <vector> |
| 26 | 25 |
|
| 27 | 26 |
std::vector<std::string> tokenize_str(const std::string &str, const std::string &delims); |
| 28 |
- |
|
| 29 |
-#endif |
| ... | ... |
@@ -15,10 +15,7 @@ |
| 15 | 15 |
along with the this software. If not, see <http://www.gnu.org/licenses/>. |
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 |
-#ifndef VERSION_H |
|
| 19 |
-#define VERSION_H |
|
| 18 |
+#pragma once |
|
| 20 | 19 |
|
| 21 | 20 |
const char *EMU_DESMUME_VERSION_STRING(); |
| 22 | 21 |
const char *EMU_DESMUME_NAME_AND_VERSION(); |
| 23 |
- |
|
| 24 |
-#endif |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - Channel structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-05-07 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Adapted from source code of FeOS Sound System |
| 7 | 7 |
* By fincs |
| ... | ... |
@@ -11,8 +11,7 @@ |
| 11 | 11 |
* http://desmume.org/ |
| 12 | 12 |
*/ |
| 13 | 13 |
|
| 14 |
-#ifndef SSEQPLAYER_CHANNEL_H |
|
| 15 |
-#define SSEQPLAYER_CHANNEL_H |
|
| 14 |
+#pragma once |
|
| 16 | 15 |
|
| 17 | 16 |
#include <bitset> |
| 18 | 17 |
#include <cstdint> |
| ... | ... |
@@ -240,5 +239,3 @@ struct Channel |
| 240 | 239 |
int32_t GenerateSample(); |
| 241 | 240 |
void IncrementSample(); |
| 242 | 241 |
}; |
| 243 |
- |
|
| 244 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT FAT (File Allocation Table) Section structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_FATSECTION_H |
|
| 11 |
-#define SSEQPLAYER_FATSECTION_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include "common.h" |
| 14 | 13 |
|
| ... | ... |
@@ -29,5 +28,3 @@ struct FATSection |
| 29 | 28 |
|
| 30 | 29 |
void Read(PseudoFile &file); |
| 31 | 30 |
}; |
| 32 |
- |
|
| 33 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT INFO Entry structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_INFOENTRY_H |
|
| 11 |
-#define SSEQPLAYER_INFOENTRY_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include "common.h" |
| 14 | 13 |
|
| ... | ... |
@@ -50,5 +49,3 @@ struct INFOEntryWAVEARC : INFOEntry |
| 50 | 49 |
|
| 51 | 50 |
void Read(PseudoFile &file); |
| 52 | 51 |
}; |
| 53 |
- |
|
| 54 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT INFO Section structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_INFOSECTION_H |
|
| 11 |
-#define SSEQPLAYER_INFOSECTION_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <map> |
| 14 | 13 |
#include "INFOEntry.h" |
| ... | ... |
@@ -33,5 +32,3 @@ struct INFOSection |
| 33 | 32 |
|
| 34 | 33 |
void Read(PseudoFile &file); |
| 35 | 34 |
}; |
| 36 |
- |
|
| 37 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - Nintendo DS Standard Header structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_NDSSTDHEADER_H |
|
| 11 |
-#define SSEQPLAYER_NDSSTDHEADER_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include "common.h" |
| 14 | 13 |
|
| ... | ... |
@@ -22,5 +21,3 @@ struct NDSStdHeader |
| 22 | 21 |
void Read(PseudoFile &file); |
| 23 | 22 |
void Verify(const std::string &typeToCheck, uint32_t magicToCheck); |
| 24 | 23 |
}; |
| 25 |
- |
|
| 26 |
-#endif |
| ... | ... |
@@ -1,15 +1,14 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - Player structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-01 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Adapted from source code of FeOS Sound System |
| 7 | 7 |
* By fincs |
| 8 | 8 |
* https://github.com/fincs/FSS |
| 9 | 9 |
*/ |
| 10 | 10 |
|
| 11 |
-#ifndef SSEQPLAYER_PLAYER_H |
|
| 12 |
-#define SSEQPLAYER_PLAYER_H |
|
| 11 |
+#pragma once |
|
| 13 | 12 |
|
| 14 | 13 |
#include "SSEQ.h" |
| 15 | 14 |
#include "Track.h" |
| ... | ... |
@@ -43,5 +42,3 @@ struct Player |
| 43 | 42 |
void UpdateTracks(); |
| 44 | 43 |
void Timer(); |
| 45 | 44 |
}; |
| 46 |
- |
|
| 47 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT SBNK (Sound Bank) structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_SBNK_H |
|
| 11 |
-#define SSEQPLAYER_SBNK_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include "SWAR.h" |
| 14 | 13 |
#include "INFOEntry.h" |
| ... | ... |
@@ -57,5 +56,3 @@ struct SBNK |
| 57 | 56 |
|
| 58 | 57 |
void Read(PseudoFile &file); |
| 59 | 58 |
}; |
| 60 |
- |
|
| 61 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-30 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_SDAT_H |
|
| 11 |
-#define SSEQPLAYER_SDAT_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <memory> |
| 14 | 13 |
#include "SSEQ.h" |
| ... | ... |
@@ -27,5 +26,3 @@ private: |
| 27 | 26 |
SDAT(const SDAT &); |
| 28 | 27 |
SDAT &operator=(const SDAT &); |
| 29 | 28 |
}; |
| 30 |
- |
|
| 31 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT SSEQ (Sequence) structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_SSEQ_H |
|
| 11 |
-#define SSEQPLAYER_SSEQ_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include "SBNK.h" |
| 14 | 13 |
#include "INFOEntry.h" |
| ... | ... |
@@ -28,5 +27,3 @@ struct SSEQ |
| 28 | 27 |
|
| 29 | 28 |
void Read(PseudoFile &file); |
| 30 | 29 |
}; |
| 31 |
- |
|
| 32 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT SWAR (Wave Archive) structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_SWAR_H |
|
| 11 |
-#define SSEQPLAYER_SWAR_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <map> |
| 14 | 13 |
#include "SWAV.h" |
| ... | ... |
@@ -29,5 +28,3 @@ struct SWAR |
| 29 | 28 |
|
| 30 | 29 |
void Read(PseudoFile &file); |
| 31 | 30 |
}; |
| 32 |
- |
|
| 33 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT SWAV (Waveform/Sample) structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-10 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_SWAV_H |
|
| 11 |
-#define SSEQPLAYER_SWAV_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include "common.h" |
| 14 | 13 |
|
| ... | ... |
@@ -28,5 +27,3 @@ struct SWAV |
| 28 | 27 |
void Read(PseudoFile &file); |
| 29 | 28 |
void DecodeADPCM(const uint8_t *origData, uint32_t len); |
| 30 | 29 |
}; |
| 31 |
- |
|
| 32 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - SDAT SYMB (Symbol/Filename) Section structures |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Nintendo DS Nitro Composer (SDAT) Specification document found at |
| 7 | 7 |
* http://www.feshrine.net/hacking/doc/nds-sdat.html |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef SSEQPLAYER_SYMBSECTION_H |
|
| 11 |
-#define SSEQPLAYER_SYMBSECTION_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <map> |
| 14 | 13 |
#include "common.h" |
| ... | ... |
@@ -35,5 +34,3 @@ struct SYMBSection |
| 35 | 34 |
|
| 36 | 35 |
void Read(PseudoFile &file); |
| 37 | 36 |
}; |
| 38 |
- |
|
| 39 |
-#endif |
| ... | ... |
@@ -1,15 +1,14 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - Track structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-01 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Adapted from source code of FeOS Sound System |
| 7 | 7 |
* By fincs |
| 8 | 8 |
* https://github.com/fincs/FSS |
| 9 | 9 |
*/ |
| 10 | 10 |
|
| 11 |
-#ifndef SSEQPLAYER_TRACK_H |
|
| 12 |
-#define SSEQPLAYER_TRACK_H |
|
| 11 |
+#pragma once |
|
| 13 | 12 |
|
| 14 | 13 |
#include <bitset> |
| 15 | 14 |
#include "consts.h" |
| ... | ... |
@@ -58,5 +57,3 @@ struct Track |
| 58 | 57 |
void ReleaseAllNotes(); |
| 59 | 58 |
void Run(); |
| 60 | 59 |
}; |
| 61 |
- |
|
| 62 |
-#endif |
| ... | ... |
@@ -1,15 +1,14 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - Common functions |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-05-01 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Some code from FeOS Sound System |
| 7 | 7 |
* By fincs |
| 8 | 8 |
* https://github.com/fincs/FSS |
| 9 | 9 |
*/ |
| 10 | 10 |
|
| 11 |
-#ifndef SSEQPLAYER_COMMON_H |
|
| 12 |
-#define SSEQPLAYER_COMMON_H |
|
| 11 |
+#pragma once |
|
| 13 | 12 |
|
| 14 | 13 |
#include <string> |
| 15 | 14 |
#include <vector> |
| ... | ... |
@@ -243,5 +242,3 @@ inline int readvl(const uint8_t **ppData) |
| 243 | 242 |
} |
| 244 | 243 |
return x; |
| 245 | 244 |
} |
| 246 |
- |
|
| 247 |
-#endif |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* SSEQ Player - Constants/Macros |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-05-07 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Adapted from source code of FeOS Sound System |
| 7 | 7 |
* By fincs |
| ... | ... |
@@ -11,8 +11,7 @@ |
| 11 | 11 |
* http://devkitpro.org/ |
| 12 | 12 |
*/ |
| 13 | 13 |
|
| 14 |
-#ifndef SSEQPLAYER_CONSTS_H |
|
| 15 |
-#define SSEQPLAYER_CONSTS_H |
|
| 14 |
+#pragma once |
|
| 16 | 15 |
|
| 17 | 16 |
#include <cstdint> |
| 18 | 17 |
|
| ... | ... |
@@ -61,5 +60,3 @@ enum Interpolation |
| 61 | 60 |
INTERPOLATION_6POINTBSPLINE, |
| 62 | 61 |
INTERPOLATION_SINC |
| 63 | 62 |
}; |
| 64 |
- |
|
| 65 |
-#endif |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF - NCSF Player |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-01 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Partially based on the vio*sf framework |
| 7 | 7 |
* |
| ... | ... |
@@ -9,8 +9,7 @@ |
| 9 | 9 |
* https://github.com/fincs/FSS |
| 10 | 10 |
*/ |
| 11 | 11 |
|
| 12 |
-#ifndef XSFPLAYER_NCSF_H |
|
| 13 |
-#define XSFPLAYER_NCSF_H |
|
| 12 |
+#pragma once |
|
| 14 | 13 |
|
| 15 | 14 |
#include <memory> |
| 16 | 15 |
#include <bitset> |
| ... | ... |
@@ -42,5 +41,3 @@ public: |
| 42 | 41 |
void SetInterpolation(unsigned interpolation); |
| 43 | 42 |
void SetMutes(const std::bitset<16> &newMutes); |
| 44 | 43 |
}; |
| 45 |
- |
|
| 46 |
-#endif |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF - SNSF configuration |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Partially based on the vio*sf framework |
| 7 | 7 |
* |
| ... | ... |
@@ -10,8 +10,7 @@ |
| 10 | 10 |
* snes9x. |
| 11 | 11 |
*/ |
| 12 | 12 |
|
| 13 |
-#ifndef XSFCONFIG_SNSF_H |
|
| 14 |
-#define XSFCONFIG_SNSF_H |
|
| 13 |
+#pragma once |
|
| 15 | 14 |
|
| 16 | 15 |
#include <bitset> |
| 17 | 16 |
#include "XSFPlayer.h" |
| ... | ... |
@@ -41,5 +40,3 @@ public: |
| 41 | 40 |
|
| 42 | 41 |
void About(HWND parent); |
| 43 | 42 |
}; |
| 44 |
- |
|
| 45 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _65C816_H_ |
|
| 179 |
-#define _65C816_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
const uint16_t Carry = 1; |
| 182 | 181 |
const uint16_t Zero = 2; |
| ... | ... |
@@ -245,5 +244,3 @@ inline bool CheckEmulation() { return !!(Registers.P.W & Emulation); }
|
| 245 | 244 |
inline void SetFlags(uint16_t f) { Registers.P.W |= f; }
|
| 246 | 245 |
inline void ClearFlags(uint16_t f) { Registers.P.W &= ~f; }
|
| 247 | 246 |
inline bool CheckFlag(uint16_t f) { return !!(Registers.P.W & f); }
|
| 248 |
- |
|
| 249 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _CPUADDR_H_ |
|
| 179 |
-#define _CPUADDR_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
enum AccessMode |
| 182 | 181 |
{
|
| ... | ... |
@@ -702,5 +701,3 @@ inline uint32_t StackRelativeIndirectIndexed(AccessMode a) // (d,S),Y |
| 702 | 701 |
{
|
| 703 | 702 |
return StackRelativeIndirectIndexedWrapper(StackRelative, a); |
| 704 | 703 |
} |
| 705 |
- |
|
| 706 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _CPUEXEC_H_ |
|
| 179 |
-#define _CPUEXEC_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
#include "ppu.h" |
| 182 | 181 |
|
| ... | ... |
@@ -297,5 +296,3 @@ inline void S9xCheckInterrupts() |
| 297 | 296 |
|
| 298 | 297 |
CPU.IRQLastState = thisIRQ; |
| 299 | 298 |
} |
| 300 |
- |
|
| 301 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _CPUMACRO_H_ |
|
| 179 |
-#define _CPUMACRO_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
template<typename Fa, typename Ff> inline void rOP8(Fa addr, Ff func) |
| 182 | 181 |
{
|
| ... | ... |
@@ -879,5 +878,3 @@ inline void TSB8(uint32_t OpAddress) |
| 879 | 878 |
S9xSetByte(Work8, OpAddress); |
| 880 | 879 |
OpenBus = Work8; |
| 881 | 880 |
} |
| 882 |
- |
|
| 883 |
-#endif |
| ... | ... |
@@ -175,11 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
- |
|
| 179 |
-#ifndef _CPUOPS_H_ |
|
| 180 |
-#define _CPUOPS_H_ |
|
| 178 |
+#pragma once |
|
| 181 | 179 |
|
| 182 | 180 |
void S9xOpcode_NMI(); |
| 183 | 181 |
void S9xOpcode_IRQ(); |
| 184 |
- |
|
| 185 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _DMA_H_ |
|
| 179 |
-#define _DMA_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
struct SDMA |
| 182 | 181 |
{
|
| ... | ... |
@@ -204,5 +203,3 @@ bool S9xDoDMA(uint8_t); |
| 204 | 203 |
void S9xStartHDMA(); |
| 205 | 204 |
uint8_t S9xDoHDMA(uint8_t); |
| 206 | 205 |
void S9xResetDMA(); |
| 207 |
- |
|
| 208 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _GETSET_H_ |
|
| 179 |
-#define _GETSET_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
#include "cpuexec.h" |
| 182 | 181 |
|
| ... | ... |
@@ -641,5 +640,3 @@ inline uint8_t *S9xGetMemPointer(uint32_t Address) |
| 641 | 640 |
return nullptr; |
| 642 | 641 |
} |
| 643 | 642 |
} |
| 644 |
- |
|
| 645 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _MEMMAP_H_ |
|
| 179 |
-#define _MEMMAP_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
#include <memory> |
| 182 | 181 |
#include <cstdint> |
| ... | ... |
@@ -296,5 +295,3 @@ enum s9xwriteorder_t |
| 296 | 295 |
}; |
| 297 | 296 |
|
| 298 | 297 |
#include "getset.h" |
| 299 |
- |
|
| 300 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _PORT_H_ |
|
| 179 |
-#define _PORT_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
#include <cstdio> |
| 182 | 181 |
#include <cstdlib> |
| ... | ... |
@@ -217,13 +216,11 @@ |
| 217 | 216 |
#endif |
| 218 | 217 |
|
| 219 | 218 |
#ifdef FAST_LSB_WORD_ACCESS |
| 220 |
-inline uint16_t READ_WORD(uint8_t *s) { return *reinterpret_cast<uint16_t *>(s); }
|
|
| 221 |
-inline uint32_t READ_3WORD(uint8_t *s) { return *reinterpret_cast<uint32_t *>(s) & 0x00FFFFFF; }
|
|
| 219 |
+inline uint16_t READ_WORD(const uint8_t *s) { return *reinterpret_cast<const uint16_t *>(s); }
|
|
| 220 |
+inline uint32_t READ_3WORD(const uint8_t *s) { return *reinterpret_cast<const uint32_t *>(s) & 0x00FFFFFF; }
|
|
| 222 | 221 |
inline void WRITE_WORD(uint8_t *s, uint16_t d) { *reinterpret_cast<uint16_t *>(s) = d; }
|
| 223 | 222 |
#else |
| 224 |
-inline uint16_t READ_WORD(uint8_t *s) { return s | ((s + 1) << 8); }
|
|
| 225 |
-inline uint32-t READ_3WORD(uint8_t *s) { return s | ((s + 1) << 8) | ((s + 2) << 16); }
|
|
| 223 |
+inline uint16_t READ_WORD(const uint8_t *s) { return s | ((s + 1) << 8); }
|
|
| 224 |
+inline uint32-t READ_3WORD(const uint8_t *s) { return s | ((s + 1) << 8) | ((s + 2) << 16); }
|
|
| 226 | 225 |
inline void WRITE_WORD(uint8_t *s, uint16_t d) { *s = static_cast<uint8_t>(d); *(s + 1) = static_cast<uint8_t>(d >> 8); }
|
| 227 | 226 |
#endif |
| 228 |
- |
|
| 229 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _PPU_H_ |
|
| 179 |
-#define _PPU_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
const int32_t FIRST_VISIBLE_LINE = 1; |
| 182 | 181 |
|
| ... | ... |
@@ -442,5 +441,3 @@ inline uint8_t REGISTER_4212() |
| 442 | 441 |
|
| 443 | 442 |
return byte; |
| 444 | 443 |
} |
| 445 |
- |
|
| 446 |
-#endif |
| ... | ... |
@@ -175,10 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _SDD1_H_ |
|
| 179 |
-#define _SDD1_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
void S9xSetSDD1MemoryMap(uint32_t, uint32_t); |
| 182 | 181 |
void S9xResetSDD1(); |
| 183 |
- |
|
| 184 |
-#endif |
| ... | ... |
@@ -175,8 +175,7 @@ |
| 175 | 175 |
Nintendo Co., Limited and its subsidiary companies. |
| 176 | 176 |
***********************************************************************************/ |
| 177 | 177 |
|
| 178 |
-#ifndef _SNES9X_H_ |
|
| 179 |
-#define _SNES9X_H_ |
|
| 178 |
+#pragma once |
|
| 180 | 179 |
|
| 181 | 180 |
#ifndef VERSION |
| 182 | 181 |
#define VERSION "1.53" |
| ... | ... |
@@ -306,5 +305,3 @@ extern SSettings Settings; |
| 306 | 305 |
extern SCPUState CPU; |
| 307 | 306 |
extern STimings Timings; |
| 308 | 307 |
extern SSNESGameFixes SNESGameFixes; |
| 309 |
- |
|
| 310 |
-#endif |
| ... | ... |
@@ -1,11 +1,10 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* String class in ANSI (or rather, current Windows code page), UTF-8, and UTF-16 |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-25 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
*/ |
| 6 | 6 |
|
| 7 |
-#ifndef BIGSSTRING_H |
|
| 8 |
-#define BIGSSTRING_H |
|
| 7 |
+#pragma once |
|
| 9 | 8 |
|
| 10 | 9 |
#include <string> |
| 11 | 10 |
#include <cstring> |
| ... | ... |
@@ -216,5 +215,3 @@ protected: |
| 216 | 215 |
std::wstring utf16; |
| 217 | 216 |
std::locale loc; |
| 218 | 217 |
}; |
| 219 |
- |
|
| 220 |
-#endif |
| ... | ... |
@@ -79,8 +79,7 @@ |
| 79 | 79 |
|
| 80 | 80 |
------------------------------------------------------------------------ */ |
| 81 | 81 |
|
| 82 |
-#ifndef _CONVERTUTF_H_ |
|
| 83 |
-#define _CONVERTUTF_H_ |
|
| 82 |
+#pragma once |
|
| 84 | 83 |
|
| 85 | 84 |
/* --------------------------------------------------------------------- |
| 86 | 85 |
The following 4 definitions are compiler-specific. |
| ... | ... |
@@ -130,5 +129,3 @@ ConversionResult ConvertUTF32toUTF16(const UTF32 **, const UTF32 *, UTF16 **, UT |
| 130 | 129 |
bool isLegalUTF8Sequence(const UTF8 *, const UTF8 *); |
| 131 | 130 |
|
| 132 | 131 |
/* --------------------------------------------------------------------- */ |
| 133 |
- |
|
| 134 |
-#endif |
| ... | ... |
@@ -1,11 +1,10 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* Windows Dynamic Dialog Builder framework |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-23 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
*/ |
| 6 | 6 |
|
| 7 |
-#ifndef DIALOG_BUILDER_H |
|
| 8 |
-#define DIALOG_BUILDER_H |
|
| 7 |
+#pragma once |
|
| 9 | 8 |
|
| 10 | 9 |
#include <string> |
| 11 | 10 |
#include <memory> |
| ... | ... |
@@ -673,5 +672,3 @@ public: |
| 673 | 672 |
void AutoSize(); |
| 674 | 673 |
const DLGTEMPLATE *GenerateTemplate(); |
| 675 | 674 |
}; |
| 676 |
- |
|
| 677 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF Tag List |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-03-21 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Storage of tags from PSF-style files, specifications found at |
| 7 | 7 |
* http://wiki.neillcorlett.com/PSFTagFormat |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef TAGLIST_H |
|
| 11 |
-#define TAGLIST_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <map> |
| 14 | 13 |
#include <vector> |
| ... | ... |
@@ -35,5 +34,3 @@ public: |
| 35 | 34 |
void Remove(const std::string &name); |
| 36 | 35 |
void Clear(); |
| 37 | 36 |
}; |
| 38 |
- |
|
| 39 |
-#endif |
| ... | ... |
@@ -1,8 +1,7 @@ |
| 1 | 1 |
// original code is from here: http://www.codeproject.com/Tips/197097/Converting-ANSI-to-Unicode-and-back |
| 2 | 2 |
// License: The Code Project Open License (CPOL) http://www.codeproject.com/info/cpol10.aspx |
| 3 | 3 |
|
| 4 |
-#ifndef UTFENCODEDECODE_H |
|
| 5 |
-#define UTFENCODEDECODE_H |
|
| 4 |
+#pragma once |
|
| 6 | 5 |
|
| 7 | 6 |
#include <string> |
| 8 | 7 |
#include <locale> |
| ... | ... |
@@ -59,5 +58,3 @@ private: |
| 59 | 58 |
return os.str(); |
| 60 | 59 |
} |
| 61 | 60 |
}; |
| 62 |
- |
|
| 63 |
-#endif |
| ... | ... |
@@ -1,8 +1,7 @@ |
| 1 | 1 |
// original code is from here: http://www.codeproject.com/Articles/17573/Convert-Between-std-string-and-std-wstring-UTF-8-a |
| 2 | 2 |
// License: The Code Project Open License (CPOL) http://www.codeproject.com/info/cpol10.aspx |
| 3 | 3 |
|
| 4 |
-#ifndef UTFCONVERTER_H |
|
| 5 |
-#define UTFCONVERTER_H |
|
| 4 |
+#pragma once |
|
| 6 | 5 |
|
| 7 | 6 |
#include <string> |
| 8 | 7 |
|
| ... | ... |
@@ -11,5 +10,3 @@ namespace UtfConverter |
| 11 | 10 |
std::wstring FromUtf8(const std::string &); |
| 12 | 11 |
std::string ToUtf8(const std::wstring &); |
| 13 | 12 |
} |
| 14 |
- |
|
| 15 |
-#endif |
| ... | ... |
@@ -1,13 +1,12 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF - Common functions |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-26 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Partially based on the vio*sf framework |
| 7 | 7 |
*/ |
| 8 | 8 |
|
| 9 |
-#ifndef XSFCOMMON_H |
|
| 10 |
-#define XSFCOMMON_H |
|
| 9 |
+#pragma once |
|
| 11 | 10 |
|
| 12 | 11 |
#include <limits> |
| 13 | 12 |
#include <fstream> |
| ... | ... |
@@ -88,5 +87,3 @@ inline bool FileExists(const std::wstring &filename) |
| 88 | 87 |
return !!file; |
| 89 | 88 |
} |
| 90 | 89 |
#endif |
| 91 |
- |
|
| 92 |
-#endif |
| ... | ... |
@@ -1,13 +1,12 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF - Core configuration handler |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-02 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Partially based on the vio*sf framework |
| 7 | 7 |
*/ |
| 8 | 8 |
|
| 9 |
-#ifndef XSFCONFIG_H |
|
| 10 |
-#define XSFCONFIG_H |
|
| 9 |
+#pragma once |
|
| 11 | 10 |
|
| 12 | 11 |
#include <memory> |
| 13 | 12 |
#include "XSFPlayer.h" |
| ... | ... |
@@ -95,5 +94,3 @@ public: |
| 95 | 94 |
PeakType GetPeakType() const; |
| 96 | 95 |
const std::wstring &GetTitleFormat() const; |
| 97 | 96 |
}; |
| 98 |
- |
|
| 99 |
-#endif |
| ... | ... |
@@ -1,13 +1,12 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF - File structure |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-23 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Partially based on the vio*sf framework |
| 7 | 7 |
*/ |
| 8 | 8 |
|
| 9 |
-#ifndef XSFFILE_H |
|
| 10 |
-#define XSFFILE_H |
|
| 9 |
+#pragma once |
|
| 11 | 10 |
|
| 12 | 11 |
#include <cstdint> |
| 13 | 12 |
#include "TagList.h" |
| ... | ... |
@@ -74,5 +73,3 @@ public: |
| 74 | 73 |
String GetFilenameWithoutPath() const; |
| 75 | 74 |
void SaveFile() const; |
| 76 | 75 |
}; |
| 77 |
- |
|
| 78 |
-#endif |
| ... | ... |
@@ -1,13 +1,12 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* xSF - Core Player |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-05-07 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
* |
| 6 | 6 |
* Partially based on the vio*sf framework |
| 7 | 7 |
*/ |
| 8 | 8 |
|
| 9 |
-#ifndef XSFPLAYER_H |
|
| 10 |
-#define XSFPLAYER_H |
|
| 9 |
+#pragma once |
|
| 11 | 10 |
|
| 12 | 11 |
#include "XSFFile.h" |
| 13 | 12 |
|
| ... | ... |
@@ -56,5 +55,3 @@ public: |
| 56 | 55 |
#endif |
| 57 | 56 |
virtual void Terminate() = 0; |
| 58 | 57 |
}; |
| 59 |
- |
|
| 60 |
-#endif |
| ... | ... |
@@ -1,11 +1,10 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* Common conversion functions |
| 3 | 3 |
* By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] |
| 4 |
- * Last modification on 2013-04-23 |
|
| 4 |
+ * Last modification on 2014-09-08 |
|
| 5 | 5 |
*/ |
| 6 | 6 |
|
| 7 |
-#ifndef _CONVERT_H_ |
|
| 8 |
-#define _CONVERT_H_ |
|
| 7 |
+#pragma once |
|
| 9 | 8 |
|
| 10 | 9 |
#include <stdexcept> |
| 11 | 10 |
#include <string> |
| ... | ... |
@@ -152,5 +151,3 @@ public: |
| 152 | 151 |
return String(ConvertFuncs::MSToString(time)).GetWStr(); |
| 153 | 152 |
} |
| 154 | 153 |
}; |
| 155 |
- |
|
| 156 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* Case-insensitive string equality |
| 3 |
- * Last modification on 2013-03-30 |
|
| 3 |
+ * Last modification on 2014-09-08 |
|
| 4 | 4 |
* |
| 5 | 5 |
* Based on "How to do case-insensitive string comparison" |
| 6 | 6 |
* By Matt Austern |
| 7 | 7 |
* http://lafstern.org/matt/col2_new.pdf |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef EQSTR_H |
|
| 11 |
-#define EQSTR_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <functional> |
| 14 | 13 |
#include <locale> |
| ... | ... |
@@ -39,5 +38,3 @@ struct eq_str : std::binary_function<std::string, std::string, bool> |
| 39 | 38 |
return x.length() == y.length() && std::equal(x.begin(), x.end(), y.begin(), eq_char(this->tab)); |
| 40 | 39 |
} |
| 41 | 40 |
}; |
| 42 |
- |
|
| 43 |
-#endif |
| ... | ... |
@@ -1,14 +1,13 @@ |
| 1 | 1 |
/* |
| 2 | 2 |
* Case-insensitive string comparison |
| 3 |
- * Last modification on 2012-03-30 |
|
| 3 |
+ * Last modification on 2014-09-08 |
|
| 4 | 4 |
* |
| 5 | 5 |
* Based on "How to do case-insensitive string comparison" |
| 6 | 6 |
* By Matt Austern |
| 7 | 7 |
* http://lafstern.org/matt/col2_new.pdf |
| 8 | 8 |
*/ |
| 9 | 9 |
|
| 10 |
-#ifndef LTSTR_H |
|
| 11 |
-#define LTSTR_H |
|
| 10 |
+#pragma once |
|
| 12 | 11 |
|
| 13 | 12 |
#include <functional> |
| 14 | 13 |
#include <locale> |
| ... | ... |
@@ -39,5 +38,3 @@ struct lt_str : std::binary_function<std::string, std::string, bool> |
| 39 | 38 |
return std::lexicographical_compare(x.begin(), x.end(), y.begin(), y.end(), lt_char(this->tab)); |
| 40 | 39 |
} |
| 41 | 40 |
}; |
| 42 |
- |
|
| 43 |
-#endif |
| ... | ... |
@@ -3,8 +3,7 @@ |
| 3 | 3 |
* http://learnwinapi.wordpress.com/2011/12/13/lesson-2-the-api-is-based-on-unicode/ |
| 4 | 4 |
*/ |
| 5 | 5 |
|
| 6 |
-#ifndef WINDOWSH_WRAPPER_H |
|
| 7 |
-#define WINDOWSH_WRAPPER_H |
|
| 6 |
+#pragma once |
|
| 8 | 7 |
|
| 9 | 8 |
#ifdef _MBCS |
| 10 | 9 |
# error "_MBCS (multi-byte character set) is defined, but only Unicode is supported" |
| ... | ... |
@@ -29,5 +28,3 @@ |
| 29 | 28 |
#undef WIN32_LEAN_AND_MEAN |
| 30 | 29 |
#define WIN32_LEAN_AND_MEAN |
| 31 | 30 |
#include <windows.h> |
| 32 |
- |
|
| 33 |
-#endif |